diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-05-08 01:20:23 +0800 |
---|---|---|
committer | techknowlogick <hello@techknowlogick.com> | 2019-05-07 13:20:23 -0400 |
commit | 9f18b231295a6282111a1f058f0c973da50b5fd4 (patch) | |
tree | ea90521aba7a1ca52c55cb61c6cb898b8d98c7f8 /integrations/gitea-repositories-meta/user13/repo11.git/hooks/applypatch-msg.sample | |
parent | 9139f35ff62927d23ee7a590a0987e8c12127bea (diff) | |
download | gitea-9f18b231295a6282111a1f058f0c973da50b5fd4.tar.gz gitea-9f18b231295a6282111a1f058f0c973da50b5fd4.zip |
Fix 404 when send pull request some situation (#6871)
Diffstat (limited to 'integrations/gitea-repositories-meta/user13/repo11.git/hooks/applypatch-msg.sample')
-rwxr-xr-x | integrations/gitea-repositories-meta/user13/repo11.git/hooks/applypatch-msg.sample | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/integrations/gitea-repositories-meta/user13/repo11.git/hooks/applypatch-msg.sample b/integrations/gitea-repositories-meta/user13/repo11.git/hooks/applypatch-msg.sample new file mode 100755 index 0000000000..a5d7b84a67 --- /dev/null +++ b/integrations/gitea-repositories-meta/user13/repo11.git/hooks/applypatch-msg.sample @@ -0,0 +1,15 @@ +#!/bin/sh +# +# An example hook script to check the commit log message taken by +# applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. The hook is +# allowed to edit the commit message file. +# +# To enable this hook, rename this file to "applypatch-msg". + +. git-sh-setup +commitmsg="$(git rev-parse --git-path hooks/commit-msg)" +test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"} +: |