Re: [PATCH 2/4] submodule: fix recursive execution from non root directory

2016-03-25 Thread Stefan Beller
On Fri, Mar 25, 2016 at 9:46 AM, Junio C Hamano wrote: > Stefan Beller writes: > >> Most times that directory doesn't exist and we error out. Fix this bug >> by clearing wt_prefix, such that any recursive instances of will assume >> to operate from the respective root of the respective submodule.

Re: [PATCH 2/4] submodule: fix recursive execution from non root directory

2016-03-25 Thread Junio C Hamano
Stefan Beller writes: > Most times that directory doesn't exist and we error out. Fix this bug > by clearing wt_prefix, such that any recursive instances of will assume > to operate from the respective root of the respective submodule. As long as the recursive instances do not take any filenames

Re: [PATCH 2/4] submodule: fix recursive execution from non root directory

2016-03-24 Thread Jacob Keller
On Thu, Mar 24, 2016 at 4:34 PM, Stefan Beller wrote: > One of the first things that happens in most submodule sub commands is > > git submodule--helper list --prefix "$wt_prefix" > > Currently the passed --prefix is used for doing path calculation > as if we were in that path relative to the

[PATCH 2/4] submodule: fix recursive execution from non root directory

2016-03-24 Thread Stefan Beller
One of the first things that happens in most submodule sub commands is git submodule--helper list --prefix "$wt_prefix" Currently the passed --prefix is used for doing path calculation as if we were in that path relative to the repository root, which is why we need to pass "$wt_prefix". The m