diff options
Diffstat (limited to 'vendor/github.com/gogits/git-module/repo_branch.go')
-rw-r--r-- | vendor/github.com/gogits/git-module/repo_branch.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vendor/github.com/gogits/git-module/repo_branch.go b/vendor/github.com/gogits/git-module/repo_branch.go index f7252bb0..a5bf11de 100644 --- a/vendor/github.com/gogits/git-module/repo_branch.go +++ b/vendor/github.com/gogits/git-module/repo_branch.go @@ -88,10 +88,12 @@ type DeleteBranchOptions struct { // DeleteBranch delete a branch by name on repository. func (repo *Repository) DeleteBranch(name string, opts DeleteBranchOptions) error { - cmd := NewCommand("branch", "-d") + cmd := NewCommand("branch") if opts.Force { - cmd.AddArguments("-f") + cmd.AddArguments("-D") + } else { + cmd.AddArguments("-d") } cmd.AddArguments(name) |