mirror of
https://github.com/clearml/clearml
synced 2025-03-03 10:42:00 +00:00
Fix support for older git versions (<2)
This commit is contained in:
parent
7af2d0c9d7
commit
e1a640d37a
@ -190,7 +190,7 @@ class GitDetector(Detector):
|
||||
|
||||
def _get_commands(self):
|
||||
return self.Commands(
|
||||
url=["git", "remote", "get-url", "origin"],
|
||||
url=["git", "ls-remote", "--get-url", "origin"],
|
||||
branch=["git", "rev-parse", "--abbrev-ref", "--symbolic-full-name", "@{u}"],
|
||||
commit=["git", "rev-parse", "HEAD"],
|
||||
root=["git", "rev-parse", "--show-toplevel"],
|
||||
|
Loading…
Reference in New Issue
Block a user