mirror of
https://github.com/gogs/gogs.git
synced 2025-12-30 20:20:06 +01:00
vendor: update github.com/gogs/git-module
This commit is contained in:
2
vendor/github.com/gogs/git-module/git.go
generated
vendored
2
vendor/github.com/gogs/git-module/git.go
generated
vendored
@@ -10,7 +10,7 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
const _VERSION = "0.6.9"
|
||||
const _VERSION = "0.7.0"
|
||||
|
||||
func Version() string {
|
||||
return _VERSION
|
||||
|
||||
9
vendor/github.com/gogs/git-module/repo.go
generated
vendored
9
vendor/github.com/gogs/git-module/repo.go
generated
vendored
@@ -176,10 +176,15 @@ func Pull(repoPath string, opts PullRemoteOptions) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// PushWithEnvs pushs local commits to given remote branch with given environment variables.
|
||||
func PushWithEnvs(repoPath, remote, branch string, envs []string) error {
|
||||
_, err := NewCommand("push", remote, branch).AddEnvs(envs...).RunInDir(repoPath)
|
||||
return err
|
||||
}
|
||||
|
||||
// Push pushs local commits to given remote branch.
|
||||
func Push(repoPath, remote, branch string) error {
|
||||
_, err := NewCommand("push", remote, branch).RunInDir(repoPath)
|
||||
return err
|
||||
return PushWithEnvs(repoPath, remote, branch, nil)
|
||||
}
|
||||
|
||||
type CheckoutOptions struct {
|
||||
|
||||
Reference in New Issue
Block a user