summaryrefslogtreecommitdiff
path: root/upload-pack.c
diff options
context:
space:
mode:
authorJohannes Sixt <johannes.sixt@telecom.at>2008-02-12 11:28:01 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-02-13 20:04:01 (GMT)
commit04b330551e427f10ac9b3d9057e8451c8bf78fc7 (patch)
tree9786d7ad28a70ab81157a7d29eb6b9ec6aaeef40 /upload-pack.c
parentf454cdc48f31e64ceae2e8d4f4838349de2f5dee (diff)
downloadgit-04b330551e427f10ac9b3d9057e8451c8bf78fc7.zip
git-04b330551e427f10ac9b3d9057e8451c8bf78fc7.tar.gz
git-04b330551e427f10ac9b3d9057e8451c8bf78fc7.tar.bz2
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>
Diffstat (limited to 'upload-pack.c')
-rw-r--r--upload-pack.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/upload-pack.c b/upload-pack.c
index 7e04311..51e3ec4 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))