1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-20 05:19:24 +02: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 @@
ref: refs/heads/master

View File

@ -0,0 +1,8 @@
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[user]
email = CI@example.com
name = CI

View File

@ -0,0 +1 @@
Unnamed repository; edit this file 'description' to name the repository.

View File

@ -0,0 +1,6 @@
# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~

View File

@ -0,0 +1 @@
0000000000000000000000000000000000000000 9f4585854e11586ddf73ccab01b7a113b73b022b CI <CI@example.com> 1638960048 +0100 commit (initial): test

View File

@ -0,0 +1 @@
0000000000000000000000000000000000000000 9f4585854e11586ddf73ccab01b7a113b73b022b CI <CI@example.com> 1638960048 +0100 commit (initial): test

View File

@ -0,0 +1,4 @@
x��K
Β0@]η³db†t
"BW=F>3("u„Ώ9‚ΫΗ{Ό�[{x
'ΫD€g��“�R•¦kE¥D¤2z¬S.�³K?{φ –nΛϊ�=µΟ[.¥·;ψx��ΔpΊAΗΔδOέ™|Νθd,r

View File

@ -0,0 +1 @@
9f4585854e11586ddf73ccab01b7a113b73b022b

View File

@ -0,0 +1 @@
test

View File

@ -0,0 +1 @@
{"KeyEvents":[{"Timestamp":1916,"Mod":0,"Key":256,"Ch":97},{"Timestamp":3421,"Mod":0,"Key":256,"Ch":99},{"Timestamp":3985,"Mod":0,"Key":256,"Ch":116},{"Timestamp":4173,"Mod":0,"Key":256,"Ch":101},{"Timestamp":4442,"Mod":0,"Key":256,"Ch":115},{"Timestamp":4696,"Mod":0,"Key":256,"Ch":116},{"Timestamp":6226,"Mod":0,"Key":13,"Ch":13},{"Timestamp":7698,"Mod":0,"Key":13,"Ch":13},{"Timestamp":10744,"Mod":0,"Key":256,"Ch":100},{"Timestamp":12856,"Mod":0,"Key":13,"Ch":13},{"Timestamp":14484,"Mod":0,"Key":256,"Ch":99},{"Timestamp":15744,"Mod":0,"Key":13,"Ch":13},{"Timestamp":18056,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":209,"Height":52}]}

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

View File

@ -0,0 +1 @@
{ "description": "In this test we attempt to create a commit with the commit message `test`, but a pre-commit hook fails (the hook checks for the existance of a file called `disruptive`). Afterwards we make the pre-commit hook work (by discarding the file), and again attempt to create a commit. This time the commit message should already be remembered from the failed attempt and be prefilled.", "speed": 20 }