mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-06-02 01:59:36 +08:00
Upgrade vendor "git" (#161)
This commit is contained in:
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 {
|
||||
|
Reference in New Issue
Block a user