aboutsummaryrefslogtreecommitdiff
path: root/daemon.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@smyrno.hos.anvin.org>2005-09-27 08:49:40 -0700
committerH. Peter Anvin <hpa@smyrno.hos.anvin.org>2005-09-27 08:49:40 -0700
commit47888f0f3188c39e13e02ad8442c5e785d2ebcdd (patch)
tree61005dcaae75d1279d3b2231c7b59ef7e4f8d030 /daemon.c
parent4ae95682694a1cd05ee2029fe241ad90d43c8c0e (diff)
downloadgit-47888f0f3188c39e13e02ad8442c5e785d2ebcdd.tar.gz
git-47888f0f3188c39e13e02ad8442c5e785d2ebcdd.tar.xz
Restore chdir(".git")
Diffstat (limited to 'daemon.c')
-rw-r--r--daemon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon.c b/daemon.c
index 0ca6cef93..a369ce527 100644
--- a/daemon.c
+++ b/daemon.c
@@ -131,6 +131,8 @@ static int upload(char *dir, int dirlen)
return -1;
}
+ chdir(".git");
+
/*
* Security on the cheap.
*