lazygit/test/repos/pre_commit_hook.sh
2018-08-19 14:52:08 +10:00

12 lines
254 B
Bash
Executable file

#!/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