summaryrefslogtreecommitdiffstats
path: root/vendor/code.gitea.io/git/repo.go
diff options
context:
space:
mode:
authorThibault Meyer <0xbaadf00d@users.noreply.github.com>2016-11-12 12:09:25 +0100
committerGitHub <noreply@github.com>2016-11-12 12:09:25 +0100
commit54e6ed3431c559f4534210f8e5431acff0a99735 (patch)
treedf696dd6f09e822354318b42f700ff1a7da49aeb /vendor/code.gitea.io/git/repo.go
parentb339858500d3c0faf8c37ee786c22657c60a5833 (diff)
downloadgitea-54e6ed3431c559f4534210f8e5431acff0a99735.tar.gz
gitea-54e6ed3431c559f4534210f8e5431acff0a99735.zip
Upgrade vendor "git" (#161)
Diffstat (limited to 'vendor/code.gitea.io/git/repo.go')
-rw-r--r--vendor/code.gitea.io/git/repo.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/code.gitea.io/git/repo.go b/vendor/code.gitea.io/git/repo.go
index bfc2cbe7c8..3d6c138c79 100644
--- a/vendor/code.gitea.io/git/repo.go
+++ b/vendor/code.gitea.io/git/repo.go
@@ -121,6 +121,7 @@ func Clone(from, to string, opts CloneRepoOptions) (err error) {
type PullRemoteOptions struct {
Timeout time.Duration
All bool
+ Rebase bool
Remote string
Branch string
}
@@ -128,6 +129,9 @@ type PullRemoteOptions struct {
// Pull pulls changes from remotes.
func Pull(repoPath string, opts PullRemoteOptions) error {
cmd := NewCommand("pull")
+ if opts.Rebase {
+ cmd.AddArguments("--rebase")
+ }
if opts.All {
cmd.AddArguments("--all")
} else {