Hi,

On Fri, 25 Nov 2022, at 02:19, Christoph Anton Mitterer wrote:
>> 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.

I’ve just run those commands, and it worked without an error. Given that I use 
git-crecord daily, I’d have caught the breakage this basic — are you sure it’s 
not something with your gitconfig?

Also, can you please try --debug?

-- 
Cheers,
  Andrej

Reply via email to