platform-samples icon indicating copy to clipboard operation
platform-samples copied to clipboard

pre-receive hook doesn't run if repository doesn't exist

Open Napoleon-BlownApart opened this issue 7 years ago • 3 comments

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?

Napoleon-BlownApart avatar Feb 24 '18 10:02 Napoleon-BlownApart

เปิดใช้งาน

pornpailin0328 avatar Mar 01 '18 11:03 pornpailin0328

Please translate!

Napoleon-BlownApart avatar Mar 02 '18 12:03 Napoleon-BlownApart

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.

Napoleon-BlownApart avatar Nov 16 '18 07:11 Napoleon-BlownApart