prevent using config when does not exist to fix #152

This commit is contained in:
Alan Hamlett 2018-10-23 07:56:30 -07:00
parent 84e0664d31
commit dc193e7b4a
1 changed files with 2 additions and 2 deletions

View File

@ -87,10 +87,10 @@ class Git(BaseProject):
disabled = self._configs.get('submodules_disabled')
if not disabled or disabled.strip().lower() == 'false':
return True
if disabled.strip().lower() == 'true':
return False
if disabled.strip().lower() == 'false':
return True
for pattern in disabled.split("\n"):
if pattern.strip():