Code

notes.c: Hexify SHA1 in die() message from init_notes()
authorJohan Herland <johan@herland.net>
Tue, 9 Nov 2010 21:49:37 +0000 (22:49 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 10 Nov 2010 18:25:51 +0000 (10:25 -0800)
Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
notes.c

diff --git a/notes.c b/notes.c
index 197824439826881fc0de3275353ec1b74d86cfa3..bb03eb03645ad46d1e11e8ef8d5c778c870aa279 100644 (file)
--- 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);