Fix replacing of a directory with a file/symlink in git-checkout-cache
commitd48a72f337fa8edfb7a09e620e75cbbb2a5fe836
authorLinus Torvalds <torvalds@g5.osdl.org>
Thu, 14 Jul 2005 16:58:45 +0000 (14 09:58 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 14 Jul 2005 16:58:45 +0000 (14 09:58 -0700)
tree9a8151ea125e529ed6a5550e465ea579cc13a6c2
parentd1918a728574a627e2a9e0dfc087cfd58e9d8acd
Fix replacing of a directory with a file/symlink in git-checkout-cache

The symlink case had never worked, and the file case was broken by the
O_EXCL change because the error return changed from EISDIR to EEXIST.

Fix both problems by just moving the test for an existing directory to a
more logical place.
entry.c