cmd_show_branch(): fix error message

We need to convert the SHA-1 to hexadecimal before printing it. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Michael Haggerty committed May 25, 2015 at 18:38 UTC 96062b576224cfad55a1cb03c6fbe1c0bc16f722
1 file changed +1 -1
builtin/show-branch.c
+1 -1
@@ -846,7 +846,7 @@ int cmd_show_branch(int ac, const char **av, const char *prefix)
846 commit = lookup_commit_reference(revkey.hash);
847 if (!commit)
848 die("cannot find commit %s (%s)",
849 - ref_name[num_rev], revkey.hash);
849 + ref_name[num_rev], oid_to_hex(&revkey));
850 parse_commit(commit);
851 mark_seen(commit, &seen);
852