diff --git a/receive-pack.c b/receive-pack.c
index a971433db155bbac162cece038b73dc64e682ac0..f83ae87e150ff93728da989f1d35ce0ad7c10f60 100644 (file)
--- a/receive-pack.c
+++ b/receive-pack.c
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);