mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-17 00:18:05 +02:00
Fix the integration test
This commit is contained in:
@ -120,11 +120,13 @@ func (c *OSCommand) AppendLineToFile(filename, line string) error {
|
||||
return utils.WrapError(err)
|
||||
}
|
||||
|
||||
// read last char
|
||||
buf := make([]byte, 1)
|
||||
if info.Size() > 0 {
|
||||
// read last char
|
||||
if _, err := f.ReadAt(buf, info.Size()-1); err != nil {
|
||||
return utils.WrapError(err)
|
||||
}
|
||||
}
|
||||
|
||||
// if the last byte of the file is not a newline, add it
|
||||
if []byte("\n")[0] != buf[0] {
|
||||
|
@ -3,8 +3,6 @@
|
||||
filemode = true
|
||||
bare = false
|
||||
logallrefupdates = true
|
||||
ignorecase = true
|
||||
precomposeunicode = true
|
||||
[user]
|
||||
email = CI@example.com
|
||||
name = CI
|
||||
|
@ -4,4 +4,3 @@
|
||||
# exclude patterns (uncomment them if you want to use them):
|
||||
# *.[oa]
|
||||
# *~
|
||||
.DS_Store
|
||||
|
@ -1 +1 @@
|
||||
0000000000000000000000000000000000000000 9dd04ee245b7d6f1f80aa2b428111cbac4a4e37d CI <CI@example.com> 1657012500 +1000 commit (initial): Initial commit
|
||||
0000000000000000000000000000000000000000 022c2391c4f9e4a963e1c35a087f08772a4ea0f0 CI <CI@example.com> 1659505392 +0200 commit (initial): Initial commit
|
||||
|
@ -1 +1 @@
|
||||
0000000000000000000000000000000000000000 9dd04ee245b7d6f1f80aa2b428111cbac4a4e37d CI <CI@example.com> 1657012500 +1000 commit (initial): Initial commit
|
||||
0000000000000000000000000000000000000000 022c2391c4f9e4a963e1c35a087f08772a4ea0f0 CI <CI@example.com> 1659505392 +0200 commit (initial): Initial commit
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
||||
9dd04ee245b7d6f1f80aa2b428111cbac4a4e37d
|
||||
022c2391c4f9e4a963e1c35a087f08772a4ea0f0
|
||||
|
Reference in New Issue
Block a user