summaryrefslogtreecommitdiff
path: root/builtin/prune.c
diff options
context:
space:
mode:
authorLibravatar Jiang Xin <worldhello.net@gmail.com>2012-03-16 20:18:07 +0800
committerLibravatar Jiang Xin <worldhello.net@gmail.com>2012-03-16 20:18:07 +0800
commitd90b16ed421eb51fc4d7c6bda5f3332cc2e3aece (patch)
tree2d90d25ecbe794492f0fb267f31af8a1f646327d /builtin/prune.c
parentl10n: Improve zh_CN translation for msg "not something we can merge" (diff)
parentGit 1.7.10-rc1 (diff)
downloadtgif-d90b16ed421eb51fc4d7c6bda5f3332cc2e3aece.tar.xz
Merge v1.7.10-rc0 for git l10n update
Diffstat (limited to 'builtin/prune.c')
-rw-r--r--builtin/prune.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/prune.c b/builtin/prune.c
index 58d7cb8324..b99b635e44 100644
--- a/builtin/prune.c
+++ b/builtin/prune.c
@@ -85,9 +85,9 @@ static int prune_dir(int i, char *path)
}
fprintf(stderr, "bad sha1 file: %s/%s\n", path, de->d_name);
}
+ closedir(dir);
if (!show_only)
rmdir(path);
- closedir(dir);
return 0;
}