1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-23 18:58:38 +00:00

bug fixed

This commit is contained in:
Lunny Xiao
2014-03-26 13:31:27 +08:00
parent fc1419d763
commit cf4123f3bc
2 changed files with 4 additions and 147 deletions

View File

@@ -58,7 +58,9 @@ func runUpdate(c *cli.Context) {
repoName := os.Getenv("repoName")
log.Info("username", userName)
log.Info("repoName", repoName)
f := models.RepoPath(userName, repoName)
log.Debug("f", f)
gitUpdate := exec.Command("git", "update-server-info")
gitUpdate.Dir = f
@@ -140,7 +142,5 @@ func runUpdate(c *cli.Context) {
if err = models.CommitRepoAction(int64(sUserId), userName,
repos.Id, repoName, refName, &base.PushCommits{l.Len(), commits}); err != nil {
log.Error("runUpdate.models.CommitRepoAction: %v", err)
} else {
}
}