Re: Getting rid of symlinks in .git?
- From
Junio C Hamano <junkio@cox.net>
- Date
- Nov 15, 2005, 02:22 UTC
- Message-ID
- <7vhdaevedu.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <81b0412b0511110443x48415032k8ca40d999071e8a9@mail.gmail.com>
Alex Riesen <raa.lkml@gmail.com> writes:
Show 5 quoted lines
> But you shouldn't care if you have reasonably recent git everywhere: > symlinks and their absence already handled: .git/config created by > init-db contains the configuration parameter for filemode, which > decides whether it is safe to use the symlinks on the underlying > filesystem.
No, no no nononononono....
core.filemode is whether the executable bit is trustworthy and does not have anything to do with symlinked heads, although these two happen to become problematic on VFAT.
Currently we have USE_SYMLINK_HEAD and have failing symlink() call fall back on regular file symrefs.
But this may not matter as long as nobody would want to force regular file symrefs on a filesystem that is capable of doing a symlink. That is the only thing we cannot do right now.