summaryrefslogtreecommitdiffstats
path: root/tools/scripts
diff options
context:
space:
mode:
authorZoltan Arvai <zarvai@inf.u-szeged.hu>2013-11-29 14:37:18 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-29 15:10:34 +0100
commit7144e0547640bf33635f6a11e9716f4c4e34b275 (patch)
treed34d5349744a4ceabba68756852aa7020ba7c8ef /tools/scripts
parent1c5e30928bd3ec31747276ff60940ec144a2cc16 (diff)
Add cygwin support to init-repository.
Git submodule works only with cygwin on Windows. MSys Git has problems with long paths. So matchesOS needs to identify cygwin environment as Windows to get the right submodules. Change-Id: Ie7acfaa4d1ef3d891710a39651049c4e5a9f3570 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'tools/scripts')
-rw-r--r--tools/scripts/git_submodule.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/scripts/git_submodule.py b/tools/scripts/git_submodule.py
index 084bd2b1..8e088e5b 100644
--- a/tools/scripts/git_submodule.py
+++ b/tools/scripts/git_submodule.py
@@ -121,7 +121,7 @@ class Submodule:
return True
if 'all' in self.os:
return True
- if sys.platform.startswith('win32') and 'win' in self.os:
+ if (sys.platform.startswith('win32') or sys.platform.startswith('cygwin')) and 'win' in self.os:
return True
if sys.platform.startswith('linux') and 'unix' in self.os:
return True