Sparse-directory safety fix.
This will be removed when merging the second phase of Linus' "Create object subdirectories on demand" change anyway, but the code to recreate the empty .git/objects/??/ directory was confused. Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Oct 16, 2005 at 14:09 UTC
b8041fe4d84bc75212cb6161d508fd1e9d2203ab
1 file changed
+1
-1
prune-packed.c
+1
-1
@@ -27,7 +27,7 @@ static void prune_dir(int i, DIR *dir, char *pathname, int len)
27
error("unable to unlink %s", pathname);
28
}
29
pathname[len] = 0;
30
- if (rmdir(pathname))
30
+ if (!rmdir(pathname))
31
mkdir(pathname, 0777);
32
}
33