prevent using config when does not exist to fix #152
This commit is contained in:
parent
84e0664d31
commit
dc193e7b4a
|
@ -87,10 +87,10 @@ class Git(BaseProject):
|
||||||
|
|
||||||
disabled = self._configs.get('submodules_disabled')
|
disabled = self._configs.get('submodules_disabled')
|
||||||
|
|
||||||
|
if not disabled or disabled.strip().lower() == 'false':
|
||||||
|
return True
|
||||||
if disabled.strip().lower() == 'true':
|
if disabled.strip().lower() == 'true':
|
||||||
return False
|
return False
|
||||||
if disabled.strip().lower() == 'false':
|
|
||||||
return True
|
|
||||||
|
|
||||||
for pattern in disabled.split("\n"):
|
for pattern in disabled.split("\n"):
|
||||||
if pattern.strip():
|
if pattern.strip():
|
||||||
|
|
Loading…
Reference in New Issue