Hi there,
I would like to create a server-side pre-receive hook in one of my repositories, that rejects pushes with files larger than X MB. The common git way is to add the hook to .git\hooks and make a bare repository to clone from/push to. How can I achieve that in the Bitbucket cloud?
Thanks in advance!
Regards,
Thomas
I believe the answer is "You can't". If you want server side hooks, you must use Bitbucket Server, not Bitbucket Cloud. Your only option is to create a webhook that calls an API endpoint that you create, that then calls the Bitbucket API (assuming the BB API can achieve what you want to achieve).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.