summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--daemon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon.c b/daemon.c
index 0ca6cef939..a369ce527e 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.
*