X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=fsck-objects.c;h=17d05363e08b48275cb38631e82f0f48321fa728;hb=e24317b4d093e4b148996172d0b749f09a0e6f2e;hp=65cec7d12b6fecc95e842069d2afa1e87bceebc1;hpb=79a9d8ea0d88a3667ad19be8e705405ab5d896f1;p=git.git diff --git a/fsck-objects.c b/fsck-objects.c index 65cec7d1..17d05363 100644 --- a/fsck-objects.c +++ b/fsck-objects.c @@ -329,9 +329,8 @@ static int fsck_dir(int i, char *path) DIR *dir = opendir(path); struct dirent *de; - if (!dir) { - return error("missing sha1 directory '%s'", path); - } + if (!dir) + return 0; while ((de = readdir(dir)) != NULL) { char name[100];