github / github/platform-samples
pre-receive hook doesn't run if repository doesn't exist
Abierto
- Lenguaje dominante
- Shell
- Estrellas
- 2.2k
- Forks
- 1.9k
- Merge medio
- 7 d 19 h
- PR fusionados (30 d)
- 1
Descripción
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?
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.