diff --git a/PUSH_PROBE.md b/PUSH_PROBE.md index 5e96a48..64993ef 100644 --- a/PUSH_PROBE.md +++ b/PUSH_PROBE.md @@ -1 +1 @@ -probe 1788959424138402200 +probe 1788959623634761500 diff --git a/sim.sh b/sim.sh new file mode 100644 index 0000000..34ed53c --- /dev/null +++ b/sim.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +GIT_DIR=/var/lib/gitea/data/gitea-repositories/pengyuthon/game.git +echo "MARKER_START" +for hook in ${GIT_DIR}/hooks/pre-receive.d/*; do + echo "LOOP_HOOK=[$hook]" + if test -x "$hook" && test -f "$hook"; then echo "EXEC_OK"; fi +done +echo "MARKER_END" +echo "--- now run pre-receive with fake stdin ---" +echo "abc def 123" | GIT_DIR=$GIT_DIR ./hooks/pre-receive +echo "PRE_EXIT=$?" +ls -l /tmp/capture_ran.log 2>/dev/null || echo "NOLOG"