platform-samples
platform-samples copied to clipboard
pre-receive hook doesn't run if repository doesn't exist
I've setup a global pre-receive hook on my own server (Ubunto 16.04.2 with Git 2.16.2), which works fine with existing repositories. However, if the repository does not exist, the script does not run and I get a client side error instead.
Is there a server side hook I can use that will run when someone tries to push to a repo that doesn't exist? Or, how else can I catch the event?
เปิดใช้งาน
Please translate!
Any comments on this? Having this feature would enable local mirroring of Swift Dependencies, thus alleviating the need to download them repeatedly after performing distribution clean operations.