christiangalsterer / stash-filehooks-plugin

An Atlassian Stash plugin to check on various file attributes, like size, name
Apache License 2.0
14 stars 27 forks source link

Can't roll back a commit with a force push #14

Closed ar613 closed 8 years ago

ar613 commented 8 years ago

I tried to do a git push --force after rolling back the last commit and got this error:

remote: Hook org.christiangalsterer.stash.filehooks.plugin.hook.FileSizeHook failed. Error: remote: At least one commit ID must be provided to retrieve changesets To ssh://git@dev.com:7999/test/mergetest.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'ssh://git@dev.com:7999/test/mergetest.git'

christiangalsterer commented 8 years ago

You you pls. add the sequence of git commands with parameters you executed to commit/rollback/commit/push.

ar613 commented 8 years ago

git commit -m"Test" git push git reset --hard 15ecf1d0422 (the previous commit to the one i just did) git push --force

antoanelenkov commented 8 years ago

Any solution?

christiangalsterer commented 8 years ago

I try to look into it the next days. Which plugin and Bitbucket version do you use?

ar613 commented 8 years ago

Bitbucket v4.8.3 File Hooks Plugin Version: 2.3.0

christiangalsterer commented 8 years ago

New plugin version 2.3.1 is released to the Atlasssian Marketplace. Thanks again for providing a pull request.