Skip to content

Commit b36cc7a

Browse files
committed
fix check if blob is uninteresting when inserting tree to packbuilder
Blobs that have been marked as uninteresting should not be inserted into packbuilder when inserting a tree. The check as to whether a blob was uninteresting looked at the status for the tree itself instead of the blob. This could cause significantly larger packfiles.
1 parent 1621a37 commit b36cc7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pack-objects.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1676,7 +1676,7 @@ int insert_tree(git_packbuilder *pb, git_tree *tree)
16761676

16771677
break;
16781678
case GIT_OBJ_BLOB:
1679-
if ((error = retrieve_object(&obj, pb, git_tree_id(tree))) < 0)
1679+
if ((error = retrieve_object(&obj, pb, entry_id)) < 0)
16801680
return error;
16811681
if (obj->uninteresting)
16821682
continue;

0 commit comments

Comments
 (0)