Commit e41a0f7b5d2d8620f514c3fa4184b60cab4269f7

Patrick Steinhardt 2018-10-04T11:45:13

Merge pull request #4824 from palmin/packbuilder-interesting-blob fix check if blob is uninteresting when inserting tree to packbuilder

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/pack-objects.c b/src/pack-objects.c
index 2b786df..58eaac6 100644
--- a/src/pack-objects.c
+++ b/src/pack-objects.c
@@ -1676,7 +1676,7 @@ int insert_tree(git_packbuilder *pb, git_tree *tree)
 
 			break;
 		case GIT_OBJ_BLOB:
-			if ((error = retrieve_object(&obj, pb, git_tree_id(tree))) < 0)
+			if ((error = retrieve_object(&obj, pb, entry_id)) < 0)
 				return error;
 			if (obj->uninteresting)
 				continue;