From 3dd93f5533f6634ae334d097a5daa8d38beb6d18 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 16 Nov 2017 00:04:07 -0500 Subject: [PATCH] vendor: update github.com/gogits/git-module --- gogs.go | 2 +- templates/.VERSION | 2 +- vendor/github.com/gogits/git-module/git.go | 2 +- vendor/github.com/gogits/git-module/repo_branch.go | 11 ++++++++--- vendor/vendor.json | 6 +++--- 5 files changed, 14 insertions(+), 9 deletions(-) diff --git a/gogs.go b/gogs.go index b886bb7d1..3e05f65d8 100644 --- a/gogs.go +++ b/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 diff --git a/templates/.VERSION b/templates/.VERSION index db4020828..f3f207f6f 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.11.31.1022 \ No newline at end of file +0.11.32.1115 \ No newline at end of file diff --git a/vendor/github.com/gogits/git-module/git.go b/vendor/github.com/gogits/git-module/git.go index 10673a901..414d67cdc 100644 --- a/vendor/github.com/gogits/git-module/git.go +++ b/vendor/github.com/gogits/git-module/git.go @@ -10,7 +10,7 @@ import ( "time" ) -const _VERSION = "0.6.3" +const _VERSION = "0.6.4" func Version() string { return _VERSION diff --git a/vendor/github.com/gogits/git-module/repo_branch.go b/vendor/github.com/gogits/git-module/repo_branch.go index a5bf11dee..de3f6ca17 100644 --- a/vendor/github.com/gogits/git-module/repo_branch.go +++ b/vendor/github.com/gogits/git-module/repo_branch.go @@ -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") diff --git a/vendor/vendor.json b/vendor/vendor.json index 4485a824a..67db82e57 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -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=",