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

10 lines
167 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
cp ../pre-commit .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
echo "file" > file
git add file