The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to delete remote branch on stash

KyleH
April 7, 2015

E.g.

$ git push origin test
Total 0 (delta 0), reused 0 (delta 0)
To ssh://git@stash.it.hk.hibm.hsbc:7999/test/felix_test.git
* [new branch] test -> test

$ git branch -d test
Deleted branch test (was 011589d).

$ git push origin :test
remote: error: denying ref deletion for refs/heads/test
To ssh://git@stash.it.hk.hibm.hsbc:7999/test/felix_test.git
! [remote rejected] test (deletion prohibited)
error: failed to push some refs to 'ssh://git@stash.it.hk.hibm.hsbc:7999/test/fe
lix_test.git'

 

I'm using Stash version 2.12.4.

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Balázs Szakmáry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
April 8, 2015

There is a setting (probably a plugin/hook) that stops you from deleting branches on the server. Check the Hooks page of the repo.

TAGS
AUG Leaders

Atlassian Community Events