From: Michal Ostrowski Date: Wed, 11 Jan 2006 02:09:02 GMT Subject: Re: [PATCH 2/2] Remember and use GIT_EXEC_PATH on exec()'s Message-ID: <1136945343.11717.638.camel@brick.watson.ibm.com> In-Reply-To: <7vd5iz4mt7.fsf@assigned-by-dhcp.cox.net> On Tue, 2006-01-10 at 16:42 -0800, Junio C Hamano wrote: > Michal Ostrowski writes: > > > How about searching for executables in the following places, and in this > > order: > > > > 1. --exec-path setting, if any > > 2. GIT_EXEC_PATH env var, if set > > 3. PATH (never modified) > > 4. Value of ${bindir} at build time > > and then make the rule for git things: > > 1. --exec-path > 2. GIT_EXEC_PATH environment > 3. $(gitexecdir) > > in this order. Non git things should just use $PATH without > looking at anything else --- as long as a hook script calls a git > wrapper (i.e. "git foo" not "git-foo") I think things should > work fine. > The patch that follows implements your suggested search order and includes suggested Makefile changes. -- Michal Ostrowski