X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-fsck.c;h=d3f3de9446a9184e9457fe4b743c4e43a9256597;hb=1e368681bd8c35202b91f8998e07d8bbb3de6c7c;hp=78a6e1ff7101f7bb616365e5d4c9d9cf7f8963ae;hpb=c7ea453618e41e05a06f05e3ab63d555d0ddd7d9;p=git.git diff --git a/builtin-fsck.c b/builtin-fsck.c index 78a6e1ff7..d3f3de944 100644 --- a/builtin-fsck.c +++ b/builtin-fsck.c @@ -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] [...]", + "git fsck [options] [...]", NULL }; @@ -585,7 +587,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;