aboutsummaryrefslogtreecommitdiff
path: root/prune-packed.c
diff options
context:
space:
mode:
Diffstat (limited to 'prune-packed.c')
-rw-r--r--prune-packed.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/prune-packed.c b/prune-packed.c
index 1e0fc0cd9..16685d1d8 100644
--- a/prune-packed.c
+++ b/prune-packed.c
@@ -27,8 +27,7 @@ static void prune_dir(int i, DIR *dir, char *pathname, int len)
error("unable to unlink %s", pathname);
}
pathname[len] = 0;
- if (!rmdir(pathname))
- mkdir(pathname, 0777);
+ rmdir(pathname);
}
static void prune_packed_objects(void)