Skip to content
GitLab
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
82b2ee11
Commit
82b2ee11
authored
Jul 26, 2022
by
Waqar Ahmed
Browse files
Use startHostProcess
parent
bb217a48
Pipeline
#209111
passed with stage
in 5 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
addons/project/gitwidget.cpp
View file @
82b2ee11
...
...
@@ -387,7 +387,7 @@ void GitWidget::setSubmodulesPaths()
QStringLiteral
(
"rev-parse"
),
QStringLiteral
(
"--show-toplevel"
)};
auto
git
=
gitp
(
args
);
git
->
start
(
);
startHostProcess
(
*
git
,
QProcess
::
ReadOnly
);
connect
(
git
,
&
QProcess
::
finished
,
this
,
[
this
,
git
](
int
exitCode
,
QProcess
::
ExitStatus
es
)
{
if
(
es
!=
QProcess
::
NormalExit
||
exitCode
!=
0
)
{
// no error on status failure
...
...
@@ -871,7 +871,6 @@ void GitWidget::parseStatusReady()
// Set new data
GitUtils
::
GitParsedStatus
s
=
m_gitStatusWatcher
.
result
();
qDebug
()
<<
"Got status: "
<<
s
.
changed
.
size
();
m_model
->
setStatusItems
(
std
::
move
(
s
),
m_pluginView
->
plugin
()
->
showGitStatusWithNumStat
());
// Restore collapse/expand state
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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