[PATCH] Make sq_expand() available as sq_quote().
[gitweb.git] / fsck-cache.c
index e42264e6ce4e61855581deb2a22b7a8f6a111d70..48be6553a3b1d9b7e4b9a3382646bf753e15a4f3 100644 (file)
@@ -312,8 +312,10 @@ static int fsck_handle_ref(const char *refname, const unsigned char *sha1)
 
        obj = lookup_object(sha1);
        if (!obj) {
-               if (!standalone && has_sha1_file(sha1))
+               if (!standalone && has_sha1_file(sha1)) {
+                       default_refs++;
                        return 0; /* it is in a pack */
+               }
                error("%s: invalid sha1 pointer %s", refname, sha1_to_hex(sha1));
                /* We'll continue with the rest despite the error.. */
                return 0;