Log output when we fail to detect main repo. (#3599)

This commit is contained in:
Oliver Chang 2020-04-09 12:38:46 +10:00 committed by GitHub
parent 149bb8bee7
commit 81febde566
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -92,4 +92,6 @@ def detect_main_repo(project_name, repo_name=None, commit=None):
match = re.search(r'\bDetected repo: ([^ ]+) ([^ ]+)', out.rstrip())
if match and match.group(1) and match.group(2):
return match.group(1), match.group(2)
logging.error('Failed to detect repo:\n%s', out)
return None, None