Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal: could not read log file 'CRECORD_COMMITMSG': No such file or directory #56

Open
HighCommander4 opened this issue Jun 24, 2024 · 4 comments

Comments

@HighCommander4
Copy link

I get the following error when trying use git-crecord:

$ git crecord -m "message"
fatal: could not read log file 'CRECORD_COMMITMSG': No such file or directory
abort: commit failed: git exited with status 128

The error appears after I've interacted with the text UI and pressed 'c' to commit the changes.

$ git-crecord --version
git crecord 20230226.0

This used to work for me at some point in the past; I'm not sure what has changed. Suggestions for how to diagnose the issue further are appreciated.

@andrewshadura
Copy link
Owner

I’m afraid I need more information. Can you run again with --debug?

@HighCommander4
Copy link
Author

Can you run again with --debug?

Sure, though it doesn't seem to contain much more information:

$ git crecord -m "test" --debug
backup 'modified_file.cpp' as '/path/to/repo/.git/record-backups/modified_file.cpp.z7v8fgqy'
applying patch
diff --git a/modified_file.cpp b/modified_file.cpp
<diff contents>

fatal: could not read log file 'CRECORD_COMMITMSG': No such file or directory
restoring '/path/to/repo/.git/record-backups/modified_file.cpp.z7v8fgqy' to 'modified_file.cpp'
abort: commit failed: git exited with status 128

I did notice that the issue only occurs if I pass the -m option on the command line. If I skip that option and instead write the commit message in the editor that comes up after interacting with the text UI, the operation succeeds.

@andrewshadura
Copy link
Owner

I think I’m onto something. What path you’re running git crecord in? Root of the checkout or somewhere else?

@HighCommander4
Copy link
Author

I think I’m onto something. What path you’re running git crecord in? Root of the checkout or somewhere else?

I'm running it from the root of the checkout. I also tried running it from a subdirectory, with the same outcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants