Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
fd6201e3
Commit
fd6201e3
authored
May 03, 2021
by
Waqar Ahmed
Browse files
git: Don't report error if git not found
parent
e764db5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/project/gitwidget.cpp
View file @
fd6201e3
...
...
@@ -307,8 +307,9 @@ QProcess *GitWidget::gitp()
auto
git
=
new
QProcess
(
this
);
git
->
setProgram
(
QStringLiteral
(
"git"
));
git
->
setWorkingDirectory
(
m_gitPath
);
connect
(
git
,
&
QProcess
::
errorOccurred
,
this
,
[
this
,
git
](
QProcess
::
ProcessError
)
{
sendMessage
(
git
->
errorString
(),
true
);
connect
(
git
,
&
QProcess
::
errorOccurred
,
this
,
[
this
,
git
](
QProcess
::
ProcessError
pe
)
{
// git program missing is not an error
sendMessage
(
git
->
errorString
(),
pe
!=
QProcess
::
FailedToStart
);
git
->
deleteLater
();
});
return
git
;
...
...
Waqar Ahmed
@waqar
mentioned in commit
2f3da2ca
·
May 03, 2021
mentioned in commit
2f3da2ca
mentioned in commit 2f3da2ca0e3f829163b17b6d7f5f5d423a1b610f
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment