mirror of
https://github.com/clearml/clearml
synced 2025-06-26 18:16:07 +00:00
Support git repositories without ".git" suffix
This commit is contained in:
parent
92984742ca
commit
9f8e814ca6
@ -201,8 +201,10 @@ class GitDetector(Detector):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def _post_process_info(self, info):
|
def _post_process_info(self, info):
|
||||||
if info.url and not info.url.endswith(".git"):
|
# Deprecated code: this was intended to make sure git repository names always
|
||||||
info.url += ".git"
|
# ended with ".git", but this is not always the case (e.g. Azure Repos)
|
||||||
|
# if info.url and not info.url.endswith(".git"):
|
||||||
|
# info.url += ".git"
|
||||||
|
|
||||||
if (info.branch or "").startswith("origin/"):
|
if (info.branch or "").startswith("origin/"):
|
||||||
info.branch = info.branch[len("origin/"):]
|
info.branch = info.branch[len("origin/"):]
|
||||||
|
Loading…
Reference in New Issue
Block a user