aboutsummaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2018-08-17 23:15:26 +0800
committerUnknwon <u@gogs.io>2018-08-17 23:15:26 +0800
commitba7b2cc1f68cd374576b186784d784b03df033f1 (patch)
tree52de6eb9d4893e62c3c1b0ca73c829111d7cd4c4 /vendor
parentac73d43444e8332015e34bfe0230dfe04edff3c3 (diff)
vendor: update github.com/gogs/git-module
Diffstat (limited to 'vendor')
-rw-r--r--vendor/github.com/gogs/git-module/git.go2
-rw-r--r--vendor/github.com/gogs/git-module/repo.go9
-rw-r--r--vendor/vendor.json6
3 files changed, 11 insertions, 6 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 {
diff --git a/vendor/vendor.json b/vendor/vendor.json
index 377f0dcb..8c3589d9 100644
--- a/vendor/vendor.json
+++ b/vendor/vendor.json
@@ -207,10 +207,10 @@
"revisionTime": "2017-03-01T03:54:11Z"
},
{
- "checksumSHA1": "n1ICKQ+DRIMl/J6DRYzQHtkUbnM=",
+ "checksumSHA1": "Ecc6Aicvu7GZe/cTRgG2TxQtOW4=",
"path": "github.com/gogs/git-module",
- "revision": "e05862f3466cbb7fba61ddbf7ff578c4d73e39f6",
- "revisionTime": "2018-08-17T11:56:23Z"
+ "revision": "e55accd068eac1c9803754a776c22b1aeddc4602",
+ "revisionTime": "2018-08-17T15:03:56Z"
},
{
"checksumSHA1": "MLO0PyrK2MUO6A7Z9PxWuu43C/A=",