0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-23 02:04:22 +01:00

bug fixed

This commit is contained in:
Lunny Xiao 2014-03-23 20:04:26 +08:00
parent 3d1a967477
commit 97e82a0ff6
2 changed files with 2 additions and 0 deletions

View file

@ -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)

View file

@ -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)