summaryrefslogtreecommitdiffstats
path: root/models/pull.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/pull.go')
-rw-r--r--models/pull.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/models/pull.go b/models/pull.go
index 76a646200e..e85bf56c61 100644
--- a/models/pull.go
+++ b/models/pull.go
@@ -907,7 +907,10 @@ func (pr *PullRequest) PushToBaseRepo() (err error) {
_ = os.Remove(file)
- if err = git.Push(headRepoPath, tmpRemoteName, fmt.Sprintf("%s:%s", pr.HeadBranch, headFile)); err != nil {
+ if err = git.Push(headRepoPath, git.PushOptions{
+ Remote: tmpRemoteName,
+ Branch: fmt.Sprintf("%s:%s", pr.HeadBranch, headFile),
+ }); err != nil {
return fmt.Errorf("Push: %v", err)
}