#!/bin/bash
# make-repo.sh: tiny git repo at /tmp/vk-review with one uncommitted change, to show that
# an "allowed" read-only command (git diff) can still write a file via --output.
rm -rf /tmp/vk-review && mkdir -p /tmp/vk-review/src && cd /tmp/vk-review || exit 1
git init -q && printf 'export const total = (a, b) => a + b;\n' > src/cart.js
git add . && git -c user.email=demo@vibekitlab.com -c user.name=demo commit -qm init
printf 'export const total = (a, b) => a - b;\n' > src/cart.js
echo "repo ready: /tmp/vk-review (1 file changed)"
