github / github/platform-samples
pre-receive hook doesn't run if repository doesn't exist
Aperta
- Lingua principale
- Shell
- Stelle
- 2.2k
- Fork
- 1.9k
- Merge medio
- 7g 19h
- PR unite (30g)
- 1
Descrizione
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?
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.