diff options
author | Anders Borum <anders@algoritmer.dk> | 2018-09-27 11:18:00 +0200 |
---|---|---|
committer | Anders Borum <anders@algoritmer.dk> | 2018-10-01 13:55:18 +0200 |
commit | b36cc7a4013a47856dade4226edc657906b82431 (patch) | |
tree | 068684f7a7224f667d045ef62b96bb00593770e7 | |
parent | 1621a37dd124c6d060b2197eed01155538b0a118 (diff) | |
download | libgit2-b36cc7a4013a47856dade4226edc657906b82431.tar.gz |
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.
-rw-r--r-- | src/pack-objects.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pack-objects.c b/src/pack-objects.c index 2b786df33..58eaac616 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; |