roomservice: Exit if get_default_or_fallback_revision() fails
This was accidentally broken in 8e47b888
.
Change-Id: I86c986202afb30cba14b1a1378f8403e462d0e55
This commit is contained in:
@@ -233,6 +233,8 @@ def fetch_dependencies(repo_path):
|
|||||||
if 'branch' not in dependency:
|
if 'branch' not in dependency:
|
||||||
if dependency.get('remote', 'github') == 'github':
|
if dependency.get('remote', 'github') == 'github':
|
||||||
dependency['branch'] = get_default_or_fallback_revision(dependency['repository'])
|
dependency['branch'] = get_default_or_fallback_revision(dependency['repository'])
|
||||||
|
if not dependency['branch']:
|
||||||
|
sys.exit(1)
|
||||||
else:
|
else:
|
||||||
dependency['branch'] = None
|
dependency['branch'] = None
|
||||||
verify_repos.append(dependency['target_path'])
|
verify_repos.append(dependency['target_path'])
|
||||||
|
Reference in New Issue
Block a user