1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-12 11:15:00 +02:00
lazygit/test/repos/pre_commit_hook.sh

13 lines
254 B
Bash
Raw Normal View History

2018-08-12 07:54:59 +02:00
#!/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"
2018-08-14 00:42:08 +02:00
cp ../extras/pre-commit .git/hooks/pre-commit
2018-08-12 07:54:59 +02:00
chmod +x .git/hooks/pre-commit
echo "file" > file
git add file