Unable to push to remote -

Our push operations are failing with the following error

remote: Hook com.carolynvs.stash.plugin.force_field.PreventForcePushPreReceiveHook failed. Error:
remote: null

We have not enabled the "Reject Force Push" plugin in any of our repositories. Please advise

 

2 answers

1 accepted

Hi Vijay, I think your Stash instance have this plugin enabled Force Field for Stash - https://marketplace.atlassian.com/plugins/com.carolynvs.force-field and your push operation is prevented by this PreReceive hook. Refer plugin document for more info. Taha

Yes..that was the plugin that was causing the issue. After uninstalling the same, we were able to go ahead with the Push operations. But what surprises me is that we had not enabled this plugin on any of the repositories. Then why was this blocking the pushes?

Roger Barnes Atlassian Team Sep 21, 2015

It sounds like there's a bug in the add-on that occurs even when it's not enabled for a repository. Stash 3.10+ has better force push prevention built in now, so that's likely a viable alternative.

I'm a little curious about that "remote: null" line - what do you see when you do 'git remote show' and 'git remote show origin'?

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,976 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you