Fix agit automerge (#31207)

(cherry picked from commit 8b92eba21f5c5cca277b8101ada0ea7a1fb32ae0)
This commit is contained in:
Lunny Xiao 2024-08-20 14:17:21 +08:00 committed by Gergely Nagy
parent 1b845b2722
commit dda53569b1
No known key found for this signature in database
5 changed files with 154 additions and 4 deletions

View 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/proc-receive.d"`; do
sh "$SHELL_FOLDER/proc-receive.d/$i"
done

View file

@ -0,0 +1,2 @@
#!/usr/bin/env bash
"$GITEA_ROOT/gitea" hook --config="$GITEA_ROOT/$GITEA_CONF" proc-receive