diff options
author | Ethan Koenig <etk39@cornell.edu> | 2017-05-30 05:32:01 -0400 |
---|---|---|
committer | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-05-30 04:32:01 -0500 |
commit | 474d6367946c661ea4b8a6b8b25fab1b5bec15d2 (patch) | |
tree | ae284947e02ce992552b863fe20519be10a1f227 /models/pull.go | |
parent | 367ff327edc6d2865e32d6e8c6fbdd216c4ab730 (diff) | |
download | gitea-474d6367946c661ea4b8a6b8b25fab1b5bec15d2.tar.gz gitea-474d6367946c661ea4b8a6b8b25fab1b5bec15d2.zip |
Update code.gitea.io/git (#1824)
* Update code.gitea.io/git
* Update function calls
* govendor fetch
Diffstat (limited to 'models/pull.go')
-rw-r--r-- | models/pull.go | 5 |
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) } |