Open lazywei opened 1 year ago
I think that's a lock on a git ref, presumably taken in accordance with git's spec. Either a jj process took that via libgit2 or a git process took it. First make sure you don't have a running process accessing your repo. If .git/refs/jj/git-push/434410530c0892d3b2e2abbcde610e8f165e2b81
(without the .lock
suffix) doesn't exist, I think the right next step is to rename .git/refs/jj/git-push/434410530c0892d3b2e2abbcde610e8f165e2b81.lock
to .git/refs/jj/git-push/434410530c0892d3b2e2abbcde610e8f165e2b81
.
I don't know if this is a bug in libgit2 or how jj uses it or something else.
Thank you @martinvonz I will try that! So it's safe to release the lock as long as there is no other running process accessing the repo right?
Thank you @martinvonz I will try that! So it's safe to release the lock as long as there is no other running process accessing the repo right?
Yes. And I think the way to release the lock is not to delete the file but to rename it.
Description
On a colocated repo with Git, it seems I'm unable to run
jj git push
Steps to Reproduce the Problem
Not quite sure what I did that messed up the repo and not sure how I can revert back to a good state.
Specifications