How can I prevent users to push binaries file into our Git server?

We are using Bitbucket as server, and I tried ScriptRunner but I can only block according to the file suffix, I am looking for better solution, something like the Unix command - file , so I could know file type no metter what is the name or suffix of the file. I found this script which is great, but I could not push it to the server or make it work...

a. is there a way to run shell commands with scriptrunner?

b. how do I push the 'server-hook' I found to my server and make it work?

Atlassian Bitbucket v6.3.0 , on Windows server (batch commands did not work either)


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.