From 04b330551e427f10ac9b3d9057e8451c8bf78fc7 Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Tue, 12 Feb 2008 12:28:01 +0100 Subject: [PATCH] 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 --- upload-pack.c | 3 +++ 1 file changed, 3 insertions(+) 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)) -- 2.30.2