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
Marco Bubke
flatpak-qt-creator
Commits
5a6c6369
Commit
5a6c6369
authored
Jun 15, 2009
by
Daniel Molkentin
Browse files
Run git on windows properly when git is called synchronously.
Reviewed-By: Friedemann Kleint
parent
a778626e
Changes
1
Show whitespace changes
Inline
Side-by-side
src/plugins/git/gitclient.cpp
View file @
5a6c6369
...
...
@@ -546,7 +546,13 @@ bool GitClient::synchronousGit(const QString &workingDirectory,
environment
.
set
(
QLatin1String
(
"PATH"
),
m_settings
.
path
);
process
.
setEnvironment
(
environment
.
toStringList
());
#ifdef Q_OS_WIN
QStringList
args
;
args
<<
"/c"
<<
m_binaryPath
<<
arguments
;
process
.
start
(
QLatin1String
(
"cmd.exe"
),
args
);
#else
process
.
start
(
m_binaryPath
,
arguments
);
#endif
process
.
closeWriteChannel
();
if
(
!
process
.
waitForFinished
())
{
...
...
Write
Preview
Supports
Markdown
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