Subject: Re: [PATCH 2/2] Makes _do_open2 set _gitdir to actual path

From: Rémi Rampin <[email-masked]>
Date: Tue, 03 Feb 2015 11:00:41 -0500

2015-02-02 12:24 UTC-05:00, Remi Rampin <[email-masked]>:
>> -                       return [_is_git [file join [file dirname $path] $link_target]]
>> +                       set link_target_abs [file join [file dirname $path] $link_target]

2015-02-03 3:51 UTC-05:00, Chris Packham <[email-masked]>:
> At this point link_target_abs is something like
> sub/../.git/modules/sub. It might be nice to normalize this with 'git
> rev-parse --git-dir' or even just (cd $link_target_abs && pwd). I'm
> not sure if tcl has anything built in that could do this kind of
> normalization.

There is 'file normalize' according to the docs. I can update the patch
if needed.