summaryrefslogtreecommitdiffstats
path: root/update.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-03-26 13:31:27 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-03-26 13:31:27 +0800
commitcf4123f3bc0d71bf7026818ae823a64712a65744 (patch)
treed445dc644373adcd75e26ba30355d94133bddace /update.go
parentfc1419d763a5a8266648874bede9a04068c64b87 (diff)
downloadgitea-cf4123f3bc0d71bf7026818ae823a64712a65744.tar.gz
gitea-cf4123f3bc0d71bf7026818ae823a64712a65744.zip
bug fixed
Diffstat (limited to 'update.go')
-rw-r--r--update.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/update.go b/update.go
index affc690e42..22b8e3ba05 100644
--- a/update.go
+++ b/update.go
@@ -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 {
-
}
}