Skip to content

Commit a331232

Browse files
authored
repo_check.py: match https repositories (#483)
1 parent 115a735 commit a331232

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/repo_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121

2222
# Pattern to match Git command-line output for remotes => (user name, project name).
23-
P_GIT_REMOTE = re.compile(r'upstream\s+[^:]+:([^/]+)/([^.]+)(\.git)?\s+\(fetch\)')
23+
P_GIT_REMOTE = re.compile(r'upstream\s+(?:https://|git@)github.com[:/]([^/]+)/([^.]+)(\.git)?\s+\(fetch\)')
2424

2525
# Repository URL format string.
2626
F_REPO_URL = 'https://github.com/{0}/{1}/'

0 commit comments

Comments
 (0)