summaryrefslogtreecommitdiffstats
path: root/test/repos/pre_commit_hook.sh
blob: 1c24bf19fa2e6d2b5ac904eb16ab2700a75c2cf1 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash
set -ex; rm -rf repo; mkdir repo; cd repo

git init
cp ../extras/pre-commit .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit

echo "file" > file
git add file