Commit 1810e43
prune: close directory earlier during loose-object directory traversal
27e1e22 (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 <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>1 parent 728749a commit 1810e43
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3503 | 3503 | | |
3504 | 3504 | | |
3505 | 3505 | | |
3506 | | - | |
| 3506 | + | |
3507 | 3507 | | |
| 3508 | + | |
3508 | 3509 | | |
3509 | 3510 | | |
3510 | 3511 | | |
3511 | | - | |
3512 | 3512 | | |
3513 | 3513 | | |
3514 | 3514 | | |
| |||
0 commit comments