Skip to content

Commit 35a985f

Browse files
authored
Removed .git suffix from VCS URL (#62)
1 parent d8d5c44 commit 35a985f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

middleware/resource.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ def get_git_info():
102102
remote_url = None
103103
if repo.remotes:
104104
remote_url = repo.remotes.origin.url
105+
if remote_url and remote_url.endswith('.git'):
106+
remote_url = remote_url[:-4]
105107
return remote_url, commit_sha
106108
except Exception:
107109
return None, None

0 commit comments

Comments
 (0)