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


No differences found