1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-25 04:43:08 +03:00

test remembering the commit message for a failing commit

This commit is contained in:
Jakob Kogler
2021-12-08 11:59:20 +01:00
committed by Jesse Duffield
parent f981255a5b
commit d517531c16
19 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#!/bin/sh
cd $1
git init
git config user.email "CI@example.com"
git config user.name "CI"
git checkout -b master
echo "test" > file1
echo "disruptive" > disruptive
cat > .git/hooks/pre-commit <<EOL
#!/bin/bash
if [ -f disruptive ]; then
exit 1
fi
exit 0
EOL
chmod +x .git/hooks/pre-commit