aboutsummaryrefslogtreecommitdiff
path: root/models/update.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-04-14 14:50:37 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-04-14 14:50:37 +0800
commit8283e16ef7af197ee77b1be412bf875ae97c789e (patch)
treec145517a3b885c49408f35e0cb9c9aabe6201a35 /models/update.go
parent6cee65db5a6e6ef7372f19d45c22a416e130afed (diff)
parentf644cefa865c04b440902695ba90114b224c640d (diff)
Merge branch 'dev' of github.com:gogits/gogs into dev
Diffstat (limited to 'models/update.go')
-rw-r--r--models/update.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/update.go b/models/update.go
index ba0e9793..2f59547b 100644
--- a/models/update.go
+++ b/models/update.go
@@ -78,7 +78,7 @@ func Update(refName, oldCommitId, newCommitId, userName, repoName string, userId
//commits = append(commits, []string{lastCommit.Id().String(), lastCommit.Message()})
if err = CommitRepoAction(userId, userName, actEmail,
- repos.Id, repoName, git.RefEndName(refName), &base.PushCommits{l.Len(), commits}); err != nil {
+ repos.Id, repoName, refName, &base.PushCommits{l.Len(), commits}); err != nil {
qlog.Fatalf("runUpdate.models.CommitRepoAction: %v", err)
}
}