I was wondering whether there was a way to reject force push on the master branch only.
This is so developers can work on feature branches, push, rebase & force push as necessary before a code reviewer merges into master.
Thanks for the quick response! I guess a custom plugin might be the way to go. Do you know if the code is hosted somewhere?
I found this (https://bitbucket.org/mark0815/stash-reject-force-push-hook) but I don't think that's the one used in Stash?
I'm afraid our code is currently private, although honestly it looks almost identical to out code _plus_ it has a branch selector. That would be a good starting point, and if you just want one branch to restrict then it should probably work out of the box.
https://bitbucket.org/mark0815/stash-reject-force-push-hookwas deleted back in April. Anyone know why, or if there is a replacement? I still have a copy of it locally, will republish if needed. (Though I suspect it might be broken on Stash 3.1 ... still investigating that.)
Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster ! While we’re all excited about the new improvements to Bitbucket ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event