diff options
author | Robert C. Helling <helling@atdotde.de> | 2015-10-14 17:04:05 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-10-14 13:14:25 -0700 |
commit | d9f7c5807b7680dd7c72729a0496a7317295db4f (patch) | |
tree | fed56dacaeaebb26808bcba84bbc7eae6885c79d | |
parent | 93b643d856d454fbaf01830b333d53e2417a483f (diff) | |
download | subsurface-d9f7c5807b7680dd7c72729a0496a7317295db4f.tar.gz |
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 <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | load-git.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |