forked from NYANDEV/forgejo
* Be more strict with git arguments * fix-up commit test * use bindings for branch name
This commit is contained in:
parent
c6f1825fe9
commit
65a76b7cb0
12 changed files with 41 additions and 20 deletions
|
@ -135,7 +135,7 @@ func (repo *Repository) DeleteBranch(name string, opts DeleteBranchOptions) erro
|
|||
cmd.AddArguments("-d")
|
||||
}
|
||||
|
||||
cmd.AddArguments(name)
|
||||
cmd.AddArguments("--", name)
|
||||
_, err := cmd.RunInDir(repo.Path)
|
||||
|
||||
return err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue