Re: [PATCH v3 0/8] Fix GIT_CEILING_DIRECTORIES that contain symlinks
- From
Anders Kaseorg <andersk@mit.edu>
- Date
- Feb 20, 2013, 09:39 UTC
- Message-ID
- <alpine.DEB.2.00.1302200427220.3204@dr-wily.mit.edu>
- In-Reply-To
- <7vmwuzzd76.fsf@alter.siamese.dyndns.org>
On Tue, 19 Feb 2013, Junio C Hamano wrote:
Show 5 quoted lines
> Assuming that this says "yes": > > D=/afs/athena.mit.edu/user/a/n/andersk/my/dir > cd "$D" > test "$(/bin/pwd)" = "$D" && echo yes
Correct.
Show 7 quoted lines
> Perhaps existing of an empty element in the list would do? E.g. > > GIT_CEILING_DIRECTORIES=:/afs/athena.mit.edu/users/a/n/andesk > > or something like that. And in such a case, we do not run realpath on > the elements on the list before comparing them with what we get from > getcwd(3).
That seems reasonable, and has the advantage of backwards compatibility with versions before 1.8.1.2, I guess.
Anders