# how about removing --exec-path?

3 messages from 2008-07-25 to 2008-07-26. Participants: Alex Riesen, Johannes Schindelin.
Thread: https://gitlist.dev/t/14680

## Alex Riesen, 2008-07-25 09:40

Subject: how about removing --exec-path?
Message-ID: <20080725094015.GA22077@blimp.local>
URL: https://gitlist.dev/e/20080725094015.GA22077%40blimp.local

```
The thing has at least this problem: is not passed to upload-pack when
running fetch. So upload-pack, everything past it gets called either
from GIT_EXEC_PATH (which usually is not set) or from builtin exec
path (and that's annoying when debugging for instance index-pack).

The feature has a stable alternative ($GIT_EXEC_PATH) anyway.

Or maybe just replace the whole argv_exec_path handling with a plain
setenv("GIT_EXEC_PATH", exec_path, 1)?

```

## Johannes Schindelin, 2008-07-26 02:49

Subject: Re: how about removing --exec-path?
Message-ID: <alpine.DEB.1.00.0807260448210.26810@eeepc-johanness>
URL: https://gitlist.dev/e/alpine.DEB.1.00.0807260448210.26810%40eeepc-johanness
In-Reply-To: <20080725094015.GA22077@blimp.local>

```
Hi,

On Fri, 25 Jul 2008, Alex Riesen wrote:

> The thing has at least this problem: is not passed to upload-pack when
> running fetch.

It should be added to PATH, and so it is passed to upload-pack, amongst 
others, in a sense.

Ciao,
Dscho

```

## Alex Riesen, 2008-07-26 06:48

Subject: Re: how about removing --exec-path?
Message-ID: <20080726064831.GA3698@blimp.local>
URL: https://gitlist.dev/e/20080726064831.GA3698%40blimp.local
In-Reply-To: <alpine.DEB.1.00.0807260448210.26810@eeepc-johanness>

```
Johannes Schindelin, Sat, Jul 26, 2008 04:49:06 +0200:
> On Fri, 25 Jul 2008, Alex Riesen wrote:
> 
> > The thing has at least this problem: is not passed to upload-pack when
> > running fetch.
> 
> It should be added to PATH, and so it is passed to upload-pack, amongst 
> others, in a sense.
> 

Yes, but next time upload-pack runs a program, it adds builtin exec
path to PATH (because --exec-path not given to transport's uploadpack
command). So it looks like this:

    $GIT_EXEC_PATH:/usr/local/libexec/git-core:/orig/exec-path:\
    $GIT_EXEC_PATH:/usr/local/libexec/git-core:$ORIG_USER_PATH

which kind of useless for debugging. So using GIT_EXEC_PATH is the
only way (and why did we need more? Working around something?)

```
