Skip to content

Commit b11b6d1

Browse files
authored
repo_check.py: allow URLs not ending with .git (#482)
1 parent 3dbfd9a commit b11b6d1

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+[^:]+:([^/]+)/([^.]+)(\.git)?\s+\(fetch\)')
2424

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

0 commit comments

Comments
 (0)