Skip to content

Commit

Permalink
repo_check.py: allow URLs not ending with .git (datacarpentry#482)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim-belkin authored Aug 5, 2020
1 parent 3dbfd9a commit b11b6d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/repo_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


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

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

0 comments on commit b11b6d1

Please sign in to comment.