summaryrefslogtreecommitdiff
path: root/notes.c
diff options
context:
space:
mode:
authorJohan Herland <johan@herland.net>2010-11-09 21:49:37 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-11-10 18:25:51 (GMT)
commit327a89dca11ac78aee711e4ab440d2194b9914f8 (patch)
tree1037083c949ddb19d1aa0db1b9ab51ca47dff601 /notes.c
parente93487d2f007176804e89042f9f199628e45c864 (diff)
downloadgit-327a89dca11ac78aee711e4ab440d2194b9914f8.zip
git-327a89dca11ac78aee711e4ab440d2194b9914f8.tar.gz
git-327a89dca11ac78aee711e4ab440d2194b9914f8.tar.bz2
notes.c: Hexify SHA1 in die() message from init_notes()
Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'notes.c')
-rw-r--r--notes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/notes.c b/notes.c
index 1978244..bb03eb0 100644
--- a/notes.c
+++ b/notes.c
@@ -940,7 +940,7 @@ void init_notes(struct notes_tree *t, const char *notes_ref,
return;
if (get_tree_entry(object_sha1, "", sha1, &mode))
die("Failed to read notes tree referenced by %s (%s)",
- notes_ref, object_sha1);
+ notes_ref, sha1_to_hex(object_sha1));
hashclr(root_tree.key_sha1);
hashcpy(root_tree.val_sha1, sha1);