upload-pack: Initialize the exec-path.
commit04b330551e427f10ac9b3d9057e8451c8bf78fc7
authorJohannes Sixt <johannes.sixt@telecom.at>
Tue, 12 Feb 2008 11:28:01 +0000 (12 12:28 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 13 Feb 2008 20:04:01 +0000 (13 12:04 -0800)
tree9786d7ad28a70ab81157a7d29eb6b9ec6aaeef40
parentf454cdc48f31e64ceae2e8d4f4838349de2f5dee
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>
upload-pack.c