Fix git remote repository detection when remote is not "origin"

This commit is contained in:
allegroai 2022-11-09 11:30:05 +02:00
parent dc1c9b5844
commit e319770831

View File

@ -227,7 +227,7 @@ class GitDetector(Detector):
def _get_commands(self):
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}"],
commit=["git", "rev-parse", "HEAD"],
root=["git", "rev-parse", "--show-toplevel"],