aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-07-16 12:16:50 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-07-16 20:41:11 +0200
commit9a9c65d289fbb80c4868760ed7a9e7a117eca7b6 (patch)
treef4a8da746e0bffbd1b8d3b0de066d029af0fc582
parente6c2b3bc12080615e80627ead75c0d9446631061 (diff)
qp5_tool.py: Fix 'clean' mode on Windows
Use the relative path for git as git submodule foreach (as invoked by "clean") does not work with spaces in the path on Windows. Change-Id: Ia53e8ef9a48c88fb3159bf961da4798216422f3c Reviewed-by: Christian Tismer <tismer@stackless.com>
-rw-r--r--build_scripts/qp5_tool.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/build_scripts/qp5_tool.py b/build_scripts/qp5_tool.py
index 7cba8e2b7..b023fc58f 100644
--- a/build_scripts/qp5_tool.py
+++ b/build_scripts/qp5_tool.py
@@ -395,8 +395,8 @@ if __name__ == '__main__':
argument_parser.print_help()
sys.exit(0)
- git = which('git')
- if git is None:
+ git = 'git'
+ if which(git) is None:
warnings.warn('Unable to find git', RuntimeWarning)
sys.exit(-1)