Re: [PATCH] Always copy template files (no symlinking)
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 22, 2008, 17:05 UTC
- Message-ID
- <7vprshyg5e.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <20080422140359.GA9590@roadkill.foldr.org>
Michael Weber <michaelw@foldr.org> writes:
Show 5 quoted lines
> Previously, git would readlink(2) template files that are symlinks, > and then symlink(2) the result into .git/. This does not work for > relative symlinks (as produced by, e.g., encap), and is probably not a > good idea either: it is an irrelevant detail that a file in the > template directory is symlinked.
This was very deliberately done to allow a relative symlink that points at e.g. ../../hooks/pre-commit with .git/hooks/pre-commit. IOW, "use what the project suggests".