1
0
mirror of https://github.com/git/git.git synced 2024-09-22 04:20:47 +02:00

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>
This commit is contained in:
Michael Haggerty 2015-05-25 18:38:49 +00:00 committed by Junio C Hamano
parent d1516bf462
commit 96062b5762

View 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);