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>
master
Haibo Lin 1 year ago
parent b27301641a
commit 19cb013fec

@ -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 = []

Loading…
Cancel
Save