From fb59a6ae7783e55c165cca4b17248fbaa511fcef Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Wed, 14 Oct 2015 17:04:05 +0200 Subject: [PATCH] Parse hash before adding picture to dive. Without this, when loading from git, the pictures are added without hashes. Signed-off-by: Robert C. Helling --- load-git.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/load-git.c b/load-git.c index 3c593bb..39dab43 100644 --- a/load-git.c +++ b/load-git.c @@ -1518,9 +1518,9 @@ static int parse_picture_entry(git_repository *repo, const git_tree_entry *entry pic = alloc_picture(); pic->offset.seconds = offset; - dive_add_picture(active_dive, pic); for_each_line(blob, picture_parser, pic); + dive_add_picture(active_dive, pic); git_blob_free(blob); return 0; } -- 2.3.8 (Apple Git-58)