forked from forgejo/forgejo
Upgrade vendor "git" (#161)
This commit is contained in:
parent
b339858500
commit
54e6ed3431
5 changed files with 17 additions and 10 deletions
4
vendor/code.gitea.io/git/repo.go
generated
vendored
4
vendor/code.gitea.io/git/repo.go
generated
vendored
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue