mirror of
https://github.com/go-gitea/gitea
synced 2025-08-11 12:08:21 +00:00
Backport #25578 This PR added a repository's check when creating/deleting branches via API. Mirror repository and archive repository cannot do that.
This commit is contained in:
7
tests/gitea-repositories-meta/user3/repo5.git/hooks/pre-receive
Executable file
7
tests/gitea-repositories-meta/user3/repo5.git/hooks/pre-receive
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
ORI_DIR=`pwd`
|
||||
SHELL_FOLDER=$(cd "$(dirname "$0")";pwd)
|
||||
cd "$ORI_DIR"
|
||||
for i in `ls "$SHELL_FOLDER/pre-receive.d"`; do
|
||||
sh "$SHELL_FOLDER/pre-receive.d/$i"
|
||||
done
|
Reference in New Issue
Block a user