mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 15:02:51 +03:00
drop error prefix when raising VCSException in case retrieving git revision failed
This commit is contained in:
parent
046c527ee8
commit
69f9f52ba2
1 changed files with 1 additions and 1 deletions
|
@ -1528,7 +1528,7 @@ class vcs_git(vcs):
|
||||||
result = p.output.rstrip()
|
result = p.output.rstrip()
|
||||||
if p.returncode > 0:
|
if p.returncode > 0:
|
||||||
raise VCSException(
|
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():
|
if Path(result) != Path(self.local).resolve():
|
||||||
raise VCSException(f"Repository mismatch ('{self.local}' != '{result}')")
|
raise VCSException(f"Repository mismatch ('{self.local}' != '{result}')")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue