aboutsummaryrefslogtreecommitdiff
path: root/receive-pack.c
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2008-03-03 05:08:43 +0100
committerJunio C Hamano <gitster@pobox.com>2008-03-02 20:58:19 -0800
commit5c09f321729c2f1ce6718a0cfefa5e647fa808fc (patch)
tree18aab23fa5fa58b60df19c69d7ea9ab5aa476fff /receive-pack.c
parent84989bd820119260c4fcd0dd5ee8a50bc8ff0d2c (diff)
downloadgit-5c09f321729c2f1ce6718a0cfefa5e647fa808fc.tar.gz
git-5c09f321729c2f1ce6718a0cfefa5e647fa808fc.tar.xz
receive-pack: Initialize PATH to include exec-dir.
511707d (use only the $PATH for exec'ing git commands) made it a requirement to call setup_path() to include the git exec-dir in PATH before spawning any other git commands. git-receive-pack was not yet adapted to do this and therefore fails to spawn git-unpack-objects if that is not in the standard PATH. Signed-off-by: Björn Steinbrink <B.Steinbrink@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'receive-pack.c')
-rw-r--r--receive-pack.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/receive-pack.c b/receive-pack.c
index 326749583..c90ec7dde 100644
--- a/receive-pack.c
+++ b/receive-pack.c
@@ -469,6 +469,8 @@ int main(int argc, char **argv)
if (!dir)
usage(receive_pack_usage);
+ setup_path(NULL);
+
if (!enter_repo(dir, 0))
die("'%s': unable to chdir or not a git archive", dir);