github / github/platform-samples
pre-receive hook doesn't run if repository doesn't exist
- Langage dominant
- Shell
- Étoiles
- 2.2k
- Forks
- 1.9k
- Merge moyen
- 7 j 19 h
- PR mergées (30 j)
- 1
Description
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?
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Le rapport concerne un pre-receive hook global sur Ubuntu 16.04.2 avec Git 2.16.2 ; commencez par reproduire un push vers un dépôt inexistant et déterminer où l’erreur côté client se produit. Confirmez si un hook côté serveur ou un autre événement est disponible, et documentez la manière prise en charge de l’intercepter, s’il en existe une.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- git, shell, ubuntu
- Domaine
- devops, tooling
- Type d'issue
- Bug
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 20/100