roomservice: Exit if get_default_or_fallback_revision() fails

This was accidentally broken in 8e47b888.

Change-Id: I86c986202afb30cba14b1a1378f8403e462d0e55
This commit is contained in:
LuK1337
2025-01-02 10:19:56 +01:00
parent 292ca28a2e
commit ee73731e4e

View File

@@ -233,6 +233,8 @@ def fetch_dependencies(repo_path):
if 'branch' not in dependency:
if dependency.get('remote', 'github') == 'github':
dependency['branch'] = get_default_or_fallback_revision(dependency['repository'])
if not dependency['branch']:
sys.exit(1)
else:
dependency['branch'] = None
verify_repos.append(dependency['target_path'])