path: root/tools/scripts
diff options
authorZoltan Arvai <>2013-11-29 14:37:18 +0100
committerThe Qt Project <>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 <>
Diffstat (limited to 'tools/scripts')
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/scripts/ b/tools/scripts/
index 084bd2b1f..8e088e5bd 100644
--- a/tools/scripts/
+++ b/tools/scripts/
@@ -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