summaryrefslogtreecommitdiffstats
path: root/serve.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-03-23 20:04:26 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-03-23 20:04:26 +0800
commit97e82a0ff6286fd0a42281cd1e34dd734110e2f4 (patch)
tree42a7435d18bfb66e24e2522a9a5649b053ae57f7 /serve.go
parent3d1a967477dd8245dabee6f9f8feb3c1c3924fc3 (diff)
downloadgitea-97e82a0ff6286fd0a42281cd1e34dd734110e2f4.tar.gz
gitea-97e82a0ff6286fd0a42281cd1e34dd734110e2f4.zip
bug fixed
Diffstat (limited to 'serve.go')
-rw-r--r--serve.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/serve.go b/serve.go
index ce1dc3184f..b84fa2a4e5 100644
--- a/serve.go
+++ b/serve.go
@@ -281,6 +281,7 @@ func runServ(k *cli.Context) {
//runUpdate(k)
c := exec.Command("git", "update-server-info")
+ c.Dir = models.RepoPath(user.Name, repoName)
err := c.Run()
if err != nil {
log.Error("update-server-info: %v", err)