Files
git/compat
Karsten Blees 45b57ae862 Win32: fix detection of empty directories in is_dir_empty
On Windows XP (not Win7), directories cannot be deleted while a find handle
is open, causing "Deletion of directory '...' failed. Should I try again?"
prompts.

Prior to 19d1e75d "Win32: Unicode file name support (except dirent)",
these failures were silently ignored due to strbuf_free in is_dir_empty
resetting GetLastError to ERROR_SUCCESS.

Close the find handle in is_dir_empty so that git doesn't block deletion
of the directory even after all other applications have released it.

Reported-by: John Chen <john0312@gmail.com>
Signed-off-by: Karsten Blees <blees@dcon.de>
2012-04-06 16:49:48 -05:00
..
2008-09-30 14:30:06 -07:00
2009-03-02 18:28:06 -08:00
2010-11-23 16:06:50 -08:00
2011-10-31 20:06:03 -07:00
2011-09-11 14:43:33 -07:00
2011-08-28 22:03:26 -07:00
2010-08-14 19:35:38 -07:00
2009-09-18 20:00:42 -07:00