Skip to content

Commit

Permalink
Handle urls without .git extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
adafruit-adabot committed Mar 5, 2018
1 parent 931a805 commit 86a73b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion adabot/circuitpython_bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ def get_contributors(repo, commit_range):

def repo_name(url):
# Strips off .git and splits on /
url = url[:-4].split("/")
if url.endswith(".git"):
url = url[:-4]
url = url.split("/")
return url[-2] + "/" + url[-1]

def add_contributors(master_list, additions):
Expand Down

0 comments on commit 86a73b0

Please sign in to comment.