github / github/platform-samples

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

オープン
#171 コメント 3 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
Shell
スター
2.2k
フォーク
1.9k
平均マージ
7日 19時間
マージ済み PR(30日)
1

説明

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?

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。