aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com')
-rw-r--r--vendor/github.com/gogs/git-module/git.go2
-rw-r--r--vendor/github.com/gogs/git-module/repo.go9
2 files changed, 8 insertions, 3 deletions
diff --git a/vendor/github.com/gogs/git-module/git.go b/vendor/github.com/gogs/git-module/git.go
index 5795d102..e060ce36 100644
--- a/vendor/github.com/gogs/git-module/git.go
+++ b/vendor/github.com/gogs/git-module/git.go
@@ -10,7 +10,7 @@ import (
"time"
)
-const _VERSION = "0.6.9"
+const _VERSION = "0.7.0"
func Version() string {
return _VERSION
diff --git a/vendor/github.com/gogs/git-module/repo.go b/vendor/github.com/gogs/git-module/repo.go
index aef9f385..1fd339dd 100644
--- a/vendor/github.com/gogs/git-module/repo.go
+++ b/vendor/github.com/gogs/git-module/repo.go
@@ -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 {