summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f865a2a)
raw | patch | inline | side by side (parent: f865a2a)
author | Junio C Hamano <junkio@cox.net> | |
Sun, 16 Oct 2005 21:09:50 +0000 (14:09 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 16 Oct 2005 21:09:50 +0000 (14:09 -0700) |
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>
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>
prune-packed.c | patch | blob | history |
diff --git a/prune-packed.c b/prune-packed.c
index 73f0f3a46277e9053d97590f8e2200477fe247e3..1e0fc0cd9e9694c0bad54e26367097cc499bf3d2 100644 (file)
--- a/prune-packed.c
+++ b/prune-packed.c
error("unable to unlink %s", pathname);
}
pathname[len] = 0;
- if (rmdir(pathname))
+ if (!rmdir(pathname))
mkdir(pathname, 0777);
}