On Wed, Jul 08, 2009 at 10:42:51PM +0200, Johannes Sixt wrote: > At this point PATH is "/usr/local/libexec/git-core:/bin:/usr/bin". There is > no /usr/local/bin. > > > trace: run_command: 'index-pack' '--stdin' '-v' '--fix-thin' ... > > trace: exec: 'git' 'index-pack' '--stdin' '-v' '--fix-thin' ... > > The PATH doesn't have 'git'; this must fail. > > > trace: exec failed: No such file or directory > > trace: exec 'index-pack' failed: No such file or directory > > fatal: index-pack failed I think there are two possible improvements here: 1. Hardlinking "git" into exec-path. That means we will always be able to find the wrapper, even if the PATH has been munged. Admittedly, it sounds far fetched to me that something would exec from the PATH and then munge the PATH afterwards, but that seems to be what sudo is doing (and it is pretty commonly used). 2. Better error messages. This would have been much more obvious to diagnose if it had said: trace: exec("git") failed: No such file or directory Johannes, I saw you just posted some related improvements to run_command; do they improve this? -Peff -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html