Skip to content

Commit 86a73b0

Browse files
Handle urls without .git extension.
1 parent 931a805 commit 86a73b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

adabot/circuitpython_bundle.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,9 @@ def get_contributors(repo, commit_range):
184184

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

190192
def add_contributors(master_list, additions):

0 commit comments

Comments
 (0)