Re: [PATCH] checkout_entry: only try to create directories when no file existed there
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 8, 2007, 22:40 UTC
- Message-ID
- <7vejid1wh2.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.64.0708082239120.21857@racer.site>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> Now, if we have to remove it, we did a stat() before that. It succeeded. > So we know that "a/b/c/d/e/f/" exists. It might contain some symlinks, > but it exists.
Yes, it is exactly the thing. It might contain a/b/c as symlink but the index does not say a/b/c _IS_ a symlink, and the code "fixes" that. Otherwise, you would get inconsistent result from "git checkout" depending on random symlink you happen to have in your working tree.