There is .gitrefs directory in my annexed repo while I am unaware. Should I do git add .gitrefs/
or git annex add .gitrefs/
or just ignore?
There is .gitrefs directory in my annexed repo while I am unaware. Should I do git add .gitrefs/
or git annex add .gitrefs/
or just ignore?
I have noticed a .gitrefs/ directory being added to my git-annex repositories as well. Two direct-mode git-annex assistant-managed repos have turned up a .gitrefs directory the past month or so, with the directory often returning after I remove it. First occurrance according to git logs is on the 3rd of December.
The directory looks a lot like .git/refs, as if some tool is trying to do something to .git/refs but has a bug that removes the first /, and then proceeds to copy or recreate the files.
A bug in the git repository repair code caused packed-refs files to be exploded to .gitrefs instead of .git/refs. I have fixed that bug.
To fix up a repository that this happened to, I'd recommend checking if there are any tags and branches in the .gitrefs directory that have gone missing from .git/refs.. If so, you could move the files back into place (unannexing them first if necessary). Otherwise, deleting .gitrefs would seem to be the thing to do.