From: Michael Haggerty Date: Mon, 25 May 2015 18:38:49 +0000 (+0000) Subject: cmd_show_branch(): fix error message X-Git-Tag: v2.5.0-rc0~54^2~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=96062b576224cfad55a1cb03c6fbe1c0bc16f722;p=git cmd_show_branch(): fix error message We need to convert the SHA-1 to hexadecimal before printing it. Signed-off-by: Michael Haggerty Signed-off-by: brian m. carlson Signed-off-by: Junio C Hamano --- diff --git a/builtin/show-branch.c b/builtin/show-branch.c index 826d9fa5fb..323f857463 100644 --- a/builtin/show-branch.c +++ b/builtin/show-branch.c @@ -846,7 +846,7 @@ int cmd_show_branch(int ac, const char **av, const char *prefix) commit = lookup_commit_reference(revkey.hash); if (!commit) die("cannot find commit %s (%s)", - ref_name[num_rev], revkey.hash); + ref_name[num_rev], oid_to_hex(&revkey)); parse_commit(commit); mark_seen(commit, &seen);