pack-objects: don't include missing preferred base objects
[gitweb.git] / builtin-fsck.c
index b0f9648f862248d1b985f31406b8f3de26b47aff..d3f3de9446a9184e9457fe4b743c4e43a9256597 100644 (file)
@@ -385,6 +385,8 @@ static void fsck_dir(int i, char *path)
                        add_sha1_list(sha1, DIRENT_SORT_HINT(de));
                        continue;
                }
+               if (!prefixcmp(de->d_name, "tmp_obj_"))
+                       continue;
                fprintf(stderr, "bad sha1 file: %s/%s\n", path, de->d_name);
        }
        closedir(dir);
@@ -539,7 +541,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
 };