]> git.ipfire.org Git - thirdparty/git.git/blobdiff - cache-tree.c
Merge branch 'tk/git-svn-trim-author-name'
[thirdparty/git.git] / cache-tree.c
index 0e5724fad752e9157dbcf1caba0438b42386ee3d..62edee45e43ee281f8e2b20f93e4b623e0c90dbc 100644 (file)
@@ -408,7 +408,7 @@ static int update_one(struct cache_tree *it,
        if (repair) {
                struct object_id oid;
                hash_object_file(buffer.buf, buffer.len, tree_type, &oid);
-               if (has_object_file(&oid))
+               if (has_object_file_with_flags(&oid, OBJECT_INFO_SKIP_FETCH_OBJECT))
                        oidcpy(&it->oid, &oid);
                else
                        to_invalidate = 1;