test: push probe round 19 (full stderr capture)

This commit is contained in:
PushProbe
2026-09-09 21:13:43 +08:00
parent bb06fbf979
commit cf90d48f50
2 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
probe 1788959424138402200
probe 1788959623634761500
+12
View File
@@ -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"