how about removing --exec-path?
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)?
Hi,
Quoted 2 lines · Alex Riesen
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
Johannes Schindelin, Sat, Jul 26, 2008 04:49:06 +0200:
Quoted 8 lines · Alex Riesen
Quoted 3 lines
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_PATHwhich kind of useless for debugging. So using GIT_EXEC_PATH is the only way (and why did we need more? Working around something?)