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

git init
git config user.email "test@example.com"
git config user.name "Lazygit Tester"

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

echo "file" > file
git add file