From: Johannes Sixt Date: Tue, 12 Feb 2008 11:28:01 +0000 (+0100) Subject: upload-pack: Initialize the exec-path. X-Git-Tag: v1.5.4.2~24 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=04b330551e427f10ac9b3d9057e8451c8bf78fc7;p=git.git upload-pack: Initialize the exec-path. Since git-upload-pack has to spawn git-pack-objects, it has to make sure that the latter can be found in the PATH. Without this patch an attempt to clone or pull via ssh from a server fails if the git tools are not in the standard PATH on the server even though git clone or git pull were invoked with --upload-pack=/path/to/git-upload-pack. Signed-off-by: Johannes Sixt Signed-off-by: Junio C Hamano --- diff --git a/upload-pack.c b/upload-pack.c index 7e0431102..51e3ec49d 100644 --- a/upload-pack.c +++ b/upload-pack.c @@ -620,6 +620,9 @@ int main(int argc, char **argv) if (i != argc-1) usage(upload_pack_usage); + + setup_path(NULL); + dir = argv[i]; if (!enter_repo(dir, strict))