diff options
author | Johannes Sixt <j6t@kdbg.org> | 2015-08-12 19:43:01 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-08-12 12:06:00 -0700 |
commit | 094c7e635287e999f382681b0749ce7711e5ce7d (patch) | |
tree | 3e74cf999d5cd4f863c62d5527ee77810cb266e2 /compat/win32/dirent.c | |
parent | sha1_file: only freshen packs once per run (diff) | |
download | tgif-094c7e635287e999f382681b0749ce7711e5ce7d.tar.xz |
prune: close directory earlier during loose-object directory traversal
27e1e22d (prune: factor out loose-object directory traversal, 2014-10-16)
introduced a new function for_each_loose_file_in_objdir() with a helper
for_each_file_in_obj_subdir(). The latter calls callbacks for each file
found during a directory traversal and finally also a callback for the
directory itself.
git-prune uses the function to clean up the object directory. In
particular, in the directory callback it calls rmdir(). On Windows XP,
this rmdir call fails, because the directory is still open while the
callback is called. Close the directory before calling the callback.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/win32/dirent.c')
0 files changed, 0 insertions, 0 deletions