On Fri, 2022-11-25 at 07:42 +0100, Andrej Shadura wrote:
> 
> 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?

Hmm I just tried with moving my ~/.config/git out of the way, but same
error as with:

> Also, can you please try --debug?

Sorry, completely forgot about that:
$ git crecord --debug
backup 'bar' as '/home/calestyo/foo/.git/record-backups/bar.1hhsrizs'
applying patch
diff --git a/bar b/bar
index e69de29..de98044 100644
--- a/bar
+++ b/bar
@@ -0,0 +1,1 @@
 a
+b
 c

error: corrupt patch at line 9
On branch master
nothing to commit, working tree clean
restoring '/home/calestyo/foo/.git/record-backups/bar.1hhsrizs' to
'bar'
abort: commit failed: git exited with status 1


I had /etc/gitconfig but that only contains:
[safe]
        bareRepository = explicit


Thanks,
Chris.

Reply via email to