summaryrefslogtreecommitdiff
path: root/builtin/show-branch.c
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2015-05-25 18:38:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-05-25 19:19:31 (GMT)
commit96062b576224cfad55a1cb03c6fbe1c0bc16f722 (patch)
tree564cb8cddcb01d0d308479cd19610f940c3d83c4 /builtin/show-branch.c
parentd1516bf4629cf2b4382a307ea0b3d7c26d2bfdca (diff)
downloadgit-96062b576224cfad55a1cb03c6fbe1c0bc16f722.zip
git-96062b576224cfad55a1cb03c6fbe1c0bc16f722.tar.gz
git-96062b576224cfad55a1cb03c6fbe1c0bc16f722.tar.bz2
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>
Diffstat (limited to 'builtin/show-branch.c')
-rw-r--r--builtin/show-branch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/show-branch.c b/builtin/show-branch.c
index 826d9fa..323f857 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);