cmd_show_branch(): fix error message
authorMichael Haggerty <mhagger@alum.mit.edu>
Mon, 25 May 2015 18:38:49 +0000 (18:38 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 May 2015 19:19:31 +0000 (12:19 -0700)
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>
builtin/show-branch.c
index 826d9fa5fbd6c42ecfac96963ae816a25f77780c..323f85746358676cccecd646e6cb820e723031cf 100644 (file)
@@ -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);