Hey Andrej On Mon, 2022-11-21 at 08:42 +0100, Andrej Shadura wrote: > Can you try these things please: > 1) Try the latest Git version
That's a bit difficult right now in my setup. > 2) If it still fails, run with --debug, it’s going to print the patch > 3) If possible, send me your working tree so that I can try it out Could you possibly try this: $ git init foo Initialized empty Git repository in /home/calestyo/foo/.git/ $ cd foo/ $ touch bar $ git add bar $ git commit -m 'foo' [master (root-commit) 157defb] foo 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 bar $ printf 'a\nb\nc\n' >| bar $ git crecord Now here, I first unselect all, and then select only one single line, e.g. the "b" line, like so: [~] diff --git a/bar b/bar index e69de29..de98044 100644 1 hunks, 3 lines changed [~] @@ -0,0 +1,3 @@ [ ] +a [x] +b [ ] +c if I now "c" or "s", I get: error: corrupt patch at line 9 On branch master nothing to commit, working tree clean abort: commit failed: git exited with status 1 In principle it's the same as what I did with the other repo, but maybe that's another issue, though... cause the error message is different. Thanks, Chris.