christiangalsterer/stash-filehooks-plugin

Do not reject push with big file deletions

ekho opened this issue · 6 comments

ekho commented
dd if=/dev/zero of=big.file bs=1024k count=1 # creating "big" file
git add big.file
git commit -m "+ big.file"
git push
# enable hook with limit 1024 bytes
git rm big.file
git commit -m "- big.file"
git push

remote: =================================
remote: File [big.file] is too large. Maximum allowed file size is 1024 bytes
remote: =================================
To ssh://git@git.example.com:7999/test/test.git
! [remote rejected] master -> master (pre-receive hook declined)

I'll will look into this in the next days.

@ekho Which version of the plugin and Bitbucket Server (Stash) are you using. Normally "delete" changes are not considered for the plugin.

ekho commented

Latest available at marketplace - 2.1.1
_051

I found the bug and will try to provide a fix in the next days.

A new release 2.1.2 is available fixing this issue.

ekho commented

Thank you!