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 <johannes.sixt@telecom.at> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Sixt committed
Feb 12, 2008 at 12:28 UTC
04b330551e427f10ac9b3d9057e8451c8bf78fc7
1 file changed
+3
upload-pack.c
+3
@@ -620,6 +620,9 @@ int main(int argc, char **argv)
620
621
if (i != argc-1)
622
usage(upload_pack_usage);
623
+
624
+ setup_path(NULL);
625
+
626
dir = argv[i];
627
628
if (!enter_repo(dir, strict))