From f4cac010aedb0445ed2da8c2496d96a67ebaab22 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 28 Dec 2023 11:05:25 -0800 Subject: [PATCH] additional git error info I ran into this a couple of times where the debug output didn't seem to make any sense until I understood that libgit simply didn't give me detailed error info. Signed-off-by: Dirk Hohndel --- core/git-access.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/git-access.c b/core/git-access.c index 82e0cadbf..41970e429 100644 --- a/core/git-access.c +++ b/core/git-access.c @@ -887,6 +887,8 @@ static bool create_local_repo(struct git_info *info) if (giterr_last()) { msg = giterr_last()->message; SSRF_INFO("git storage: error message was %s\n", msg); + } else { + SSRF_INFO("git storage: giterr_last() is null\n"); } char *pattern = format_string("reference 'refs/remotes/origin/%s' not found", info->branch); // it seems that we sometimes get 'Reference' and sometimes 'reference'