diff options
author | Karsten Blees <karsten.blees@dcon.de> | 2012-03-06 10:18:41 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-03-07 10:24:33 -0800 |
commit | d34e70d6b89b33c398403e872c0dd751d44c7844 (patch) | |
tree | b674f854d00d2145951d93076eb5f5c426d8de24 /t/t2104-update-index-skip-worktree.sh | |
parent | t5704: fix nonportable sed/grep usages (diff) | |
download | tgif-d34e70d6b89b33c398403e872c0dd751d44c7844.tar.xz |
fix deletion of .git/objects sub-directories in git-prune/repack
Both git-prune and git-repack (and thus, git-gc) try to rmdir while
holding a DIR* handle on the directory. This can leave dangling
empty directories in the .git/objects on platforms where directory
cannot be removed while they are open.
First call closedir() and then rmdir(); that is more logical ordering.
Reported-by: John Chen <john0312@gmail.com>
Reported-by: Stefan Naewe <stefan.naewe@gmail.com>
Signed-off-by: Karsten Blees <blees@dcon.de>
Improved-and-Acked-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2104-update-index-skip-worktree.sh')
0 files changed, 0 insertions, 0 deletions