mirror of https://github.com/gogs/gogs.git
vendor: update github.com/gogs/git-module
parent
ac73d43444
commit
ba7b2cc1f6
|
@ -10,7 +10,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
const _VERSION = "0.6.9"
|
const _VERSION = "0.7.0"
|
||||||
|
|
||||||
func Version() string {
|
func Version() string {
|
||||||
return _VERSION
|
return _VERSION
|
||||||
|
|
|
@ -176,10 +176,15 @@ func Pull(repoPath string, opts PullRemoteOptions) error {
|
||||||
return err
|
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.
|
// Push pushs local commits to given remote branch.
|
||||||
func Push(repoPath, remote, branch string) error {
|
func Push(repoPath, remote, branch string) error {
|
||||||
_, err := NewCommand("push", remote, branch).RunInDir(repoPath)
|
return PushWithEnvs(repoPath, remote, branch, nil)
|
||||||
return err
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type CheckoutOptions struct {
|
type CheckoutOptions struct {
|
||||||
|
|
|
@ -207,10 +207,10 @@
|
||||||
"revisionTime": "2017-03-01T03:54:11Z"
|
"revisionTime": "2017-03-01T03:54:11Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"checksumSHA1": "n1ICKQ+DRIMl/J6DRYzQHtkUbnM=",
|
"checksumSHA1": "Ecc6Aicvu7GZe/cTRgG2TxQtOW4=",
|
||||||
"path": "github.com/gogs/git-module",
|
"path": "github.com/gogs/git-module",
|
||||||
"revision": "e05862f3466cbb7fba61ddbf7ff578c4d73e39f6",
|
"revision": "e55accd068eac1c9803754a776c22b1aeddc4602",
|
||||||
"revisionTime": "2018-08-17T11:56:23Z"
|
"revisionTime": "2018-08-17T15:03:56Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"checksumSHA1": "MLO0PyrK2MUO6A7Z9PxWuu43C/A=",
|
"checksumSHA1": "MLO0PyrK2MUO6A7Z9PxWuu43C/A=",
|
||||||
|
|
Loading…
Reference in New Issue