From 19cb013fec107739ba1f5cc537e6f746dfb4252b Mon Sep 17 00:00:00 2001 From: Haibo Lin Date: Thu, 14 Jul 2022 10:59:34 +0800 Subject: [PATCH] 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 --- pungi/util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pungi/util.py b/pungi/util.py index 06b657ad..b744f572 100644 --- a/pungi/util.py +++ b/pungi/util.py @@ -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 = []