mirror of
https://github.com/clearml/clearml
synced 2025-04-27 17:51:45 +00:00
Fix git remote repository detection when remote is not "origin"
This commit is contained in:
parent
dc1c9b5844
commit
e319770831
@ -227,7 +227,7 @@ class GitDetector(Detector):
|
|||||||
|
|
||||||
def _get_commands(self):
|
def _get_commands(self):
|
||||||
return self.Commands(
|
return self.Commands(
|
||||||
url=["git", "ls-remote", "--get-url", "origin"],
|
url=["git", "ls-remote", "--get-url"],
|
||||||
branch=["git", "rev-parse", "--abbrev-ref", "--symbolic-full-name", "@{u}"],
|
branch=["git", "rev-parse", "--abbrev-ref", "--symbolic-full-name", "@{u}"],
|
||||||
commit=["git", "rev-parse", "HEAD"],
|
commit=["git", "rev-parse", "HEAD"],
|
||||||
root=["git", "rev-parse", "--show-toplevel"],
|
root=["git", "rev-parse", "--show-toplevel"],
|
||||||
|
Loading…
Reference in New Issue
Block a user