Code

Fix handle leak in write_tree
authorAlex Riesen <raa.lkml@gmail.com>
Wed, 25 Apr 2007 22:28:17 +0000 (00:28 +0200)
committerJunio C Hamano <junkio@cox.net>
Thu, 26 Apr 2007 00:34:37 +0000 (17:34 -0700)
commitc21aa54e190e6527f05a2a943b343032e9dac90b
tree3e0f5a4ada1e25a50fbfc0a4b70326b4bf0f3ce1
parentd1efefa46fda6bb68bcd73a5e532eef98ef28a1d
Fix handle leak in write_tree

This is a quick and dirty fix for the broken "git cherry-pick -n" on
some broken OS, which does not remove the directory entry after unlink
succeeded(!) if the file is still open somewher.
The entry is left but "protected": no open, no unlink, no stat.
Very annoying.

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-write-tree.c