drop error prefix when raising VCSException in case retrieving git revision failed

This commit is contained in:
Michael Pöhn 2025-04-02 12:29:26 +00:00 committed by Hans-Christoph Steiner
parent 046c527ee8
commit 69f9f52ba2

View file

@ -1528,7 +1528,7 @@ class vcs_git(vcs):
result = p.output.rstrip()
if p.returncode > 0:
raise VCSException(
f"error: `{' '.join(cmd)}` failed, (in '{os.path.abspath(self.local)}') {result}"
f"`{' '.join(cmd)}` failed, (in '{os.path.abspath(self.local)}') {result}"
)
if Path(result) != Path(self.local).resolve():
raise VCSException(f"Repository mismatch ('{self.local}' != '{result}')")