summaryrefslogtreecommitdiffstats
path: root/models/pull.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-03-04 15:43:01 -0500
committerUnknwon <u@gogs.io>2016-03-04 15:43:01 -0500
commit2d2d85bba4dd5131e72db533c31aab423f86232e (patch)
treee53c3c263021efc846dee43249651142a49e76f3 /models/pull.go
parent9df6ce48c538e0458b6798f0819db8afce43e5c7 (diff)
downloadgitea-2d2d85bba4dd5131e72db533c31aab423f86232e.tar.gz
gitea-2d2d85bba4dd5131e72db533c31aab423f86232e.zip
#1597 support pull requests in same repository
Diffstat (limited to 'models/pull.go')
-rw-r--r--models/pull.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/pull.go b/models/pull.go
index 276dc1bcfd..77484b9562 100644
--- a/models/pull.go
+++ b/models/pull.go
@@ -487,7 +487,7 @@ func (pr *PullRequest) UpdatePatch() (err error) {
// FIXME: could fail after user force push head repo, should we always force push here?
// FIXME: Only push branches that are actually updates?
func (pr *PullRequest) PushToBaseRepo() (err error) {
- log.Trace("PushToBaseRepo[%[1]d]: pushing commits to base repo 'refs/pull/%[1]d/head'", pr.ID)
+ log.Trace("PushToBaseRepo[%d]: pushing commits to base repo 'refs/pull/%d/head'", pr.BaseRepoID, pr.Index)
headRepoPath := pr.HeadRepo.RepoPath()
headGitRepo, err := git.OpenRepository(headRepoPath)