Allow module components to use a git ref outside of the master branch

This commit is contained in:
mprahl
2018-09-06 14:52:26 -04:00
parent e7089d7be0
commit 9d40718895

View File

@@ -477,7 +477,8 @@ def _fetch_mmd(url, branch=None, allow_local_url=False, whitelist_url=False):
else:
scm = module_build_service.scm.SCM(url, branch, conf.scmurls, allow_local_url)
scm.checkout(td)
scm.verify()
if not whitelist_url:
scm.verify()
cofn = scm.get_module_yaml()
mmd = load_mmd(cofn, is_file=True)
finally: