]> asedeno.scripts.mit.edu Git - git.git/blobdiff - builtin-fsck.c
editor.c: Libify launch_editor()
[git.git] / builtin-fsck.c
index 78a6e1ff7101f7bb616365e5d4c9d9cf7f8963ae..7a4a4f144f7550c5eee67e728ef5ff0df7a5d2ba 100644 (file)
@@ -377,6 +377,10 @@ static void fsck_dir(int i, char *path)
                        if (de->d_name[0] != '.')
                                break;
                        continue;
+               case 14:
+                       if (prefixcmp(de->d_name, "tmp_obj_"))
+                               break;
+                       continue;
                case 38:
                        sprintf(name, "%02x", i);
                        memcpy(name+2, de->d_name, len+1);
@@ -539,7 +543,7 @@ static int fsck_cache_tree(struct cache_tree *it)
 }
 
 static char const * const fsck_usage[] = {
-       "git-fsck [options] [<object>...]",
+       "git fsck [options] [<object>...]",
        NULL
 };
 
@@ -585,7 +589,7 @@ int cmd_fsck(int argc, const char **argv, const char *prefix)
                prepare_packed_git();
                for (p = packed_git; p; p = p->next)
                        /* verify gives error messages itself */
-                       verify_pack(p, 0);
+                       verify_pack(p);
 
                for (p = packed_git; p; p = p->next) {
                        uint32_t j, num;