1
0
mirror of https://github.com/git/git.git synced 2025-04-06 10:27:55 +00:00
Karsten Blees d34e70d6b8 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>
2012-03-07 10:24:33 -08:00
..
2011-12-13 21:58:51 -08:00
2012-01-06 12:44:07 -08:00
2011-11-07 22:12:19 -08:00
2011-12-21 12:02:44 -08:00
2011-12-28 11:32:36 -08:00
2011-12-22 11:27:26 -08:00
2012-01-12 23:33:39 -08:00
2011-12-22 15:30:22 -08:00