vendor/libgit2/src/pack-objects.c in rugged-0.26.7 vs vendor/libgit2/src/pack-objects.c in rugged-0.27.0

- old
+ new

@@ -1640,11 +1640,11 @@ const char *name; if ((error = retrieve_object(&obj, pb, git_tree_id(tree))) < 0) return error; - if (obj->seen) + if (obj->seen || obj->uninteresting) return 0; obj->seen = 1; if ((error = git_packbuilder_insert(pb, &obj->id, NULL))) @@ -1664,9 +1664,13 @@ if (error < 0) return error; break; case GIT_OBJ_BLOB: + if ((error = retrieve_object(&obj, pb, git_tree_id(tree))) < 0) + return error; + if (obj->uninteresting) + continue; name = git_tree_entry_name(entry); if ((error = git_packbuilder_insert(pb, entry_id, name)) < 0) return error; break; default: