summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f454cdc)
raw | patch | inline | side by side (parent: f454cdc)
author | Johannes Sixt <johannes.sixt@telecom.at> | |
Tue, 12 Feb 2008 11:28:01 +0000 (12:28 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 13 Feb 2008 20:04:01 +0000 (12:04 -0800) |
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>
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>
upload-pack.c | patch | blob | history |
diff --git a/upload-pack.c b/upload-pack.c
index 7e04311027176fc87c1de7dd619000d2a75d4eb9..51e3ec49d120f2e5a095cde45eb0a22bb7e624da 100644 (file)
--- a/upload-pack.c
+++ b/upload-pack.c
if (i != argc-1)
usage(upload_pack_usage);
+
+ setup_path(NULL);
+
dir = argv[i];
if (!enter_repo(dir, strict))