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

Trouble with Lock File #566

Closed
danielkwalsh opened this issue May 23, 2024 · 3 comments
Closed

Trouble with Lock File #566

danielkwalsh opened this issue May 23, 2024 · 3 comments

Comments

@danielkwalsh
Copy link

I'm getting the following error:
fatal: cannot lock ref <REF>: Unable to create <ROOT>/.git/refs/heads/<BRANCH>.lock: File exists.
Researching the problem online, it seems this error can occur if there's another git process working on the files concurrently, which can create another lock file. However, after receiving the error, I checked /.git/refs/heads/.lock, and there was no such file. Any thoughts?

@newren
Copy link
Owner

newren commented Jun 18, 2024

You're running on a case-insensitive filesystem, but have branches that differ only in case. Do your filtering on a case-sensitive filesystem and it'll work just fine. A search through the issues in this repository for the cannot lock message will find multiple duplicates.

@harshita-gupta
Copy link

I'm running into this error even on a case-sensitive filesystem: #590

@newren
Copy link
Owner

newren commented Aug 2, 2024

I'm running into this error even on a case-sensitive filesystem: #590

Nope, #590 is different. That's locking packed-refs and additionally has the weird ./ in the path. Let's keep these separate.

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

3 participants