Re: Submodule's .git file contains absolute path when created using 'git clone --recursive'

2016-07-12 Thread Stefan Beller
On Tue, Jul 12, 2016 at 4:22 AM, Ricardo Sánchez-Sáez wrote: > Stefan Beller google.com> writes: > > Hi, > > sorry to awake an old thread. Has this been fixed? In which git version? > It's hitting me on git version 2.7.4 (Apple Git-66) (default git client on > OS X 10.11.5 (15F34)). > > I think

Re: Submodule's .git file contains absolute path when created using 'git clone --recursive'

2016-07-12 Thread Ricardo Sánchez-Sáez
Stefan Beller google.com> writes: > > On Thu, May 5, 2016 at 12:20 PM, Loet Avramson forter.com> wrote: > > It happened on 2.8.1, also reproducible on 2.8.2. > > Haven't had the time to dive deeper into the code but my guess is that > > relative_path() returns different results in those 2 cases

Re: Submodule's .git file contains absolute path when created using 'git clone --recursive'

2016-05-05 Thread Stefan Beller
On Thu, May 5, 2016 at 12:20 PM, Loet Avramson wrote: > It happened on 2.8.1, also reproducible on 2.8.2. > Haven't had the time to dive deeper into the code but my guess is that > relative_path() returns different results in those 2 cases or maybe > the way git-submodule.sh handles it. > Then yo

Re: Submodule's .git file contains absolute path when created using 'git clone --recursive'

2016-05-05 Thread Loet Avramson
It happened on 2.8.1, also reproducible on 2.8.2. Haven't had the time to dive deeper into the code but my guess is that relative_path() returns different results in those 2 cases or maybe the way git-submodule.sh handles it. On Thu, May 5, 2016 at 8:22 PM, Stefan Beller wrote: > On Thu, May 5, 2

Re: Submodule's .git file contains absolute path when created using 'git clone --recursive'

2016-05-05 Thread Stefan Beller
On Thu, May 5, 2016 at 5:51 AM, Loet Avramson wrote: > Hi, > > According to git-clone man page - running 'git clone --recursive' "...is > equivalent to running 'git submodule update --init --recursive' immediately > after the clone is finished...", though I found a little difference between > the

Re: Submodule's .git file contains absolute path when created using 'git clone --recursive'

2016-05-05 Thread Junio C Hamano
Loet Avramson writes: > According to git-clone man page - running 'git clone --recursive' "...is > equivalent to running 'git submodule update --init --recursive' immediately > after the clone is finished...", though I found a little difference between > the two regarding the submodule's .git

Submodule's .git file contains absolute path when created using 'git clone --recursive'

2016-05-05 Thread Loet Avramson
Hi, According to git-clone man page - running 'git clone --recursive' "...is equivalent to running 'git submodule update --init --recursive' immediately after the clone is finished...", though I found a little difference between the two regarding the submodule's .git file: 1. Running 'git clon