author | Linus Torvalds <torvalds@g5.osdl.org> | |
Thu, 14 Jul 2005 16:58:45 +0000 (09:58 -0700) | ||
committer | Linus Torvalds <torvalds@g5.osdl.org> | |
Thu, 14 Jul 2005 16:58:45 +0000 (09:58 -0700) | ||
commit | d48a72f337fa8edfb7a09e620e75cbbb2a5fe836 | |
tree | 9a8151ea125e529ed6a5550e465ea579cc13a6c2 | tree | snapshot |
parent | d1918a728574a627e2a9e0dfc087cfd58e9d8acd | commit | diff |
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.
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 | diff | blob | history |