When doing a git pull
on a repo I work in everyday, I received the following error:
fatal: BUG: get_tempfile_fd() called for inactive object
That's all the error said. What does it mean and what do I do?
The resolution for me was was deleting .git/index.lock
.
The problem for me was that I didn't have permissions for the directory I was in, so switching to the correct user fixed it for me. Simple fix but you can easily overlook it.
This is often a permissions error. On Linux you can chown
the folder or switch to the appropriate user.
Use ls -la
within the parent folder to see the user permissions. If this is indeed the problem, you can chown
the folder recursively.
If my folder name containing the repository was happytimes
and my name was daniel
I would do:
sudo chown -R daniel:daniel happytimes
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With