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:
committed by
Jesse Duffield
parent
f981255a5b
commit
d517531c16
20
test/integration/rememberCommitMessageAfterFail/setup.sh
Normal file
20
test/integration/rememberCommitMessageAfterFail/setup.sh
Normal 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
|
||||
Reference in New Issue
Block a user