On 2007.11.11 11:43:02 -0800, Junio C Hamano wrote:Maybe you prefer this patch then? "make test" survived up to 9101/25, but that fails with the current master anyway and I didn't bother to run the remaining tests manually, so it seems to be fine. Might break some weird setups that rely on being able to set multiple additional paths though (not that I think that that is a good idea to begin with). Björn --- Instead of adding all possible exec paths to PATH, only add the best one, following the same rules that --exec-path, without arguments, uses to figure out which path to display. Signed-off-by: Björn Steinbrink <B.Steinbrink@gmx.de> --- diff --git a/exec_cmd.c b/exec_cmd.c index 2d0a758..9c376ad 100644 --- a/exec_cmd.c +++ b/exec_cmd.c @@ -48,9 +48,7 @@ void setup_path(const char *cmd_path) strbuf_init(&new_path, 0); - add_path(&new_path, argv_exec_path); - add_path(&new_path, getenv(EXEC_PATH_ENVIRONMENT)); - add_path(&new_path, builtin_exec_path); + add_path(&new_path, git_exec_path()); add_path(&new_path, cmd_path); if (old_path) - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| monstr | [PATCH 11/60] microblaze_v4: cache support |
| Andrew Morton | Re: x86: 4kstacks default |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Alan Cox | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
git: | |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Ben Hutchings | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 03/37] dccp: List management for new feature negotiation |
| Jiri Olsa | [PATCHv5 0/2] net: fix race in the receive/select |
