diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-23 20:04:26 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-23 20:04:26 +0800 |
commit | 97e82a0ff6286fd0a42281cd1e34dd734110e2f4 (patch) | |
tree | 42a7435d18bfb66e24e2522a9a5649b053ae57f7 | |
parent | 3d1a967477dd8245dabee6f9f8feb3c1c3924fc3 (diff) | |
download | gitea-97e82a0ff6286fd0a42281cd1e34dd734110e2f4.tar.gz gitea-97e82a0ff6286fd0a42281cd1e34dd734110e2f4.zip |
bug fixed
-rw-r--r-- | models/repo.go | 1 | ||||
-rw-r--r-- | serve.go | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/models/repo.go b/models/repo.go index eafb12f471..e27e99b056 100644 --- a/models/repo.go +++ b/models/repo.go @@ -200,6 +200,7 @@ func CreateRepository(user *User, repoName, desc, repoLang, license string, priv } c := exec.Command("git", "update-server-info") + c.Dir = repoPath err = c.Run() if err != nil { log.Error("repo.CreateRepository(exec update-server-info): %v", err) @@ -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) |