This commit is contained in:
Yasuhito Suganuma
2014-04-25 23:49:17 +09:00
parent 375211fc30
commit 7a1c872861
2 changed files with 2 additions and 2 deletions

View File

@@ -164,7 +164,7 @@ trait RepositoryViewerControllerBase extends ControllerBase {
val userName = context.loginAccount.get.userName
if(repository.repository.defaultBranch != branchName){
using(Git.open(getRepositoryDir(repository.owner, repository.name))){ git =>
git.branchDelete().setBranchNames(branchName).call()
git.branchDelete().setForce(true).setBranchNames(branchName).call()
recordDeleteBranchActivity(repository.owner, repository.name, userName, branchName)
}
}