I'd need to create a pre-receive hook for Stash (Atlassian) that can validate the file types in each commit. The goal is to reject types that are supposed to be stored in Maven, e.g.: DLL files, images, etc.
I found some examples for hooks, but I can't really understand any of them (unfamiliar with this Linux-friendly side of IT). Could anybody help me out with how to start?
How to create a Hook script that has access to the file types/names in a commit?