From d9f7c5807b7680dd7c72729a0496a7317295db4f Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Wed, 14 Oct 2015 17:04:05 +0200 Subject: 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 Signed-off-by: Dirk Hohndel --- load-git.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/load-git.c b/load-git.c index 3c593bb4c..39dab4367 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; } -- cgit v1.2.3-70-g09d2