I just read the introduction of Adaptavist Scriptrunner and was asking whether the Pre-Receive hook for file size restrictions really checks the format of the file, i.e. binary or text.
That would be really great if it blocks binary file of 5MB but not a textfile of 5MB.
If you want to block all binary files you can use the "custom pre-receive hook" also listed here.
Hope this helps.
Thanks for the reply. Decision by file extension is not really helpful because then I have to know by definition either the allowed binary file extensions or the allowed text file extensions. The custom pre-receive hook sounds interesting also because I'm interested in many examples as possible writing such scripts.
In my case I decided to do it in a local pre-commit hook by checking the 1st 4096 bytes of any staged file for deviations to the allowed ascii characters.
Atlas Camp is our developer event which will take place in Barcelona, Spain from the 6th -7th of September . This is a great opportunity to meet other developers and get n...
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG