lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

Weird behavior when .gitattributes error

Open dmun opened this issue 3 years ago • 1 comments

Describe the bug When there's a .gitattributes error you are not able to stage certain files for some reason.

To Reproduce Steps to reproduce the behavior:

  1. Make sure you have a .gitattributes file with an error like this:
*.sh text eol=lf    # comments behind a line aren't allowed in .gitattribute files
  1. Look at the changes and try to stage a file

Expected behavior Normal shown changes.

Screenshots

image

Desktop (please complete the following information):

  • OS: macOS
  • Lazygit Version 0.32.2

dmun avatar Feb 25 '22 14:02 dmun

@dmun could you check if the issue still occurs with the latest master? https://github.com/jesseduffield/lazygit/pull/2081 should have fixed it.

mark2185 avatar Sep 19 '22 15:09 mark2185

@mark2185 Seems to be working, nice!

dmun avatar Sep 24 '22 20:09 dmun

Great!

Feel free to reopen if it happens again (but it shouldn't)

mark2185 avatar Sep 24 '22 20:09 mark2185