@matheusbsbs / matheus-bagliano / commits / 327a89dca1
Fork 0

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>

Johan Herland committed Nov 9, 2010 at 22:49 UTC 327a89dca11ac78aee711e4ab440d2194b9914f8
1 file changed +1 -1
notes.c
+1 -1
@@ -940,7 +940,7 @@ void init_notes(struct notes_tree *t, const char *notes_ref,
940 return;
941 if (get_tree_entry(object_sha1, "", sha1, &mode))
942 die("Failed to read notes tree referenced by %s (%s)",
943 - notes_ref, object_sha1);
943 + notes_ref, sha1_to_hex(object_sha1));
944
945 hashclr(root_tree.key_sha1);
946 hashcpy(root_tree.val_sha1, sha1);