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>
Björn Steinbrink committed
Mar 3, 2008 at 05:08 UTC
5c09f321729c2f1ce6718a0cfefa5e647fa808fc
1 file changed
+2
receive-pack.c
+2
@@ -469,6 +469,8 @@ int main(int argc, char **argv)
469
if (!dir)
470
usage(receive_pack_usage);
471
472
+ setup_path(NULL);
473
+
474
if (!enter_repo(dir, 0))
475
die("'%s': unable to chdir or not a git archive", dir);
476