repo_check.py: match https repositories (#483)
authorMaxim Belkin <maxim.belkin@gmail.com>
Wed, 5 Aug 2020 13:52:34 +0000 (08:52 -0500)
committerGitHub <noreply@github.com>
Wed, 5 Aug 2020 13:52:34 +0000 (09:52 -0400)
bin/repo_check.py

index d2f0a6352d92fd0c8b54bc801fd10350b946871b..9bf5c597cf1e328658cd99546fb205f61cc5552c 100644 (file)
@@ -20,7 +20,7 @@ except ImportError:
 
 
 # Pattern to match Git command-line output for remotes => (user name, project name).
-P_GIT_REMOTE = re.compile(r'upstream\s+[^:]+:([^/]+)/([^.]+)(\.git)?\s+\(fetch\)')
+P_GIT_REMOTE = re.compile(r'upstream\s+(?:https://|git@)github.com[:/]([^/]+)/([^.]+)(\.git)?\s+\(fetch\)')
 
 # Repository URL format string.
 F_REPO_URL = 'https://github.com/{0}/{1}/'