Re: [PATCH v2] rev-parse: respect core.hooksPath in --git-path

2016-08-17 Thread Junio C Hamano
Remi Galan Alfonso writes: > I tried to see if the `git config` in other tests were in the > same case or not but the sheer amount made me reconsider. However > taking a look at a couple of random ones, there are some scripts > that would benefit from

Re: [PATCH v2] rev-parse: respect core.hooksPath in --git-path

2016-08-17 Thread Remi Galan Alfonso
Junio C Hamano writes: > Remi Galan Alfonso > writes: > >> Johannes Schindelin writes: >>> Hi Rémi, >>> >>> On Tue, 16 Aug 2016, Remi Galan Alfonso wrote: >>> >>> > Johannes Schindelin

Re: [PATCH v2] rev-parse: respect core.hooksPath in --git-path

2016-08-16 Thread Junio C Hamano
Remi Galan Alfonso writes: > Johannes Schindelin writes: >> Hi Rémi, >> >> On Tue, 16 Aug 2016, Remi Galan Alfonso wrote: >> >> > Johannes Schindelin writes: >> > > diff --git

Re: [PATCH v2] rev-parse: respect core.hooksPath in --git-path

2016-08-16 Thread Remi Galan Alfonso
Johannes Schindelin writes: > Hi Rémi, > > On Tue, 16 Aug 2016, Remi Galan Alfonso wrote: > > > Johannes Schindelin writes: > > > diff --git a/t/t1350-config-hooks-path.sh b/t/t1350-config-hooks-path.sh > > > index 5e3fb3a..f1f9aee 100755

Re: [PATCH v2] rev-parse: respect core.hooksPath in --git-path

2016-08-16 Thread Johannes Schindelin
Hi Rémi, On Tue, 16 Aug 2016, Remi Galan Alfonso wrote: > Johannes Schindelin writes: > > diff --git a/t/t1350-config-hooks-path.sh b/t/t1350-config-hooks-path.sh > > index 5e3fb3a..f1f9aee 100755 > > --- a/t/t1350-config-hooks-path.sh > > +++

Re: [PATCH v2] rev-parse: respect core.hooksPath in --git-path

2016-08-16 Thread Remi Galan Alfonso
Hi Johannes, Johannes Schindelin writes: > diff --git a/t/t1350-config-hooks-path.sh b/t/t1350-config-hooks-path.sh > index 5e3fb3a..f1f9aee 100755 > --- a/t/t1350-config-hooks-path.sh > +++ b/t/t1350-config-hooks-path.sh > @@ -34,4 +34,10 @@ test_expect_success

[PATCH v2] rev-parse: respect core.hooksPath in --git-path

2016-08-16 Thread Johannes Schindelin
The idea of the --git-path option is not only to avoid having to prefix paths with the output of --git-dir all the time, but also to respect overrides for specific common paths inside the .git directory (e.g. `git rev-parse --git-path objects` will report the value of the environment variable