Print more logs for git_ls_remote

e.output probably contains the root cause of git ls-remote failure.

JIRA: RHELCMP-9598
JIRA: RHELCMP-9599
Signed-off-by: Haibo Lin <hlin@redhat.com>
This commit is contained in:
Haibo Lin 2022-07-14 10:59:34 +08:00
parent b27301641a
commit 19cb013fec
1 changed files with 2 additions and 1 deletions

View File

@ -292,7 +292,8 @@ def resolve_git_ref(repourl, ref):
_, output = git_ls_remote(repourl, ref)
except RuntimeError as e:
raise GitUrlResolveError(
"ref does not exist in remote repo %s with the error %s" % (repourl, e)
"ref does not exist in remote repo %s with the error %s %s"
% (repourl, e, e.output)
)
lines = []