Browse Source

vendor: update github.com/gogits/git-module

pull/4762/merge
Unknwon 7 years ago
parent
commit
3dd93f5533
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 2
      gogs.go
  2. 2
      templates/.VERSION
  3. 2
      vendor/github.com/gogits/git-module/git.go
  4. 11
      vendor/github.com/gogits/git-module/repo_branch.go
  5. 6
      vendor/vendor.json

2
gogs.go

@ -16,7 +16,7 @@ import (
"github.com/gogits/gogs/pkg/setting"
)
const APP_VER = "0.11.31.1022"
const APP_VER = "0.11.32.1115"
func init() {
setting.AppVer = APP_VER

2
templates/.VERSION

@ -1 +1 @@
0.11.31.1022
0.11.32.1115

2
vendor/github.com/gogits/git-module/git.go generated vendored

@ -10,7 +10,7 @@ import (
"time"
)
const _VERSION = "0.6.3"
const _VERSION = "0.6.4"
func Version() string {
return _VERSION

11
vendor/github.com/gogits/git-module/repo_branch.go generated vendored

@ -86,8 +86,8 @@ type DeleteBranchOptions struct {
Force bool
}
// DeleteBranch delete a branch by name on repository.
func (repo *Repository) DeleteBranch(name string, opts DeleteBranchOptions) error {
// DeleteBranch deletes a branch from given repository path.
func DeleteBranch(repoPath, name string, opts DeleteBranchOptions) error {
cmd := NewCommand("branch")
if opts.Force {
@ -97,11 +97,16 @@ func (repo *Repository) DeleteBranch(name string, opts DeleteBranchOptions) erro
}
cmd.AddArguments(name)
_, err := cmd.RunInDir(repo.Path)
_, err := cmd.RunInDir(repoPath)
return err
}
// DeleteBranch deletes a branch from repository.
func (repo *Repository) DeleteBranch(name string, opts DeleteBranchOptions) error {
return DeleteBranch(repo.Path, name, opts)
}
// AddRemote adds a new remote to repository.
func (repo *Repository) AddRemote(name, url string, fetch bool) error {
cmd := NewCommand("remote", "add")

6
vendor/vendor.json vendored

@ -183,10 +183,10 @@
"revisionTime": "2016-08-10T03:50:02Z"
},
{
"checksumSHA1": "kPsa/ri8Vh9yHG8LQYgnH2Xa6YY=",
"checksumSHA1": "oSsxc1i4agO7Gp1kgiUxLDHCtKU=",
"path": "github.com/gogits/git-module",
"revision": "1de103dca47a72afccccb4ccd6085110874f3551",
"revisionTime": "2017-06-08T20:55:22Z"
"revision": "0654b3dcf2e85ed96c9923cb65cae5341fe1df3f",
"revisionTime": "2017-11-16T04:59:35Z"
},
{
"checksumSHA1": "GBfb+meRaVNarQavLB/bzbDoBtY=",

Loading…
Cancel
Save