Merge branch 'rs/remote-mv-leakfix'
[gitweb.git] / builtin / prune.c
index 89f9d8155a6d233b199c75579ab3d2b274bfaeea..4916a4daa264ee695dbfbde81dbd8ef0072ac9c4 100644 (file)
@@ -40,7 +40,7 @@ static int prune_object(const struct object_id *oid, const char *fullpath,
         * Do we know about this object?
         * It must have been reachable
         */
-       if (lookup_object(oid->hash))
+       if (lookup_object(the_repository, oid->hash))
                return 0;
 
        if (lstat(fullpath, &st)) {