Dear all, I have a repository in direct mode which still has some symlinks pointing to .git/annex/objects. Is there a way to turn them back into regular files. I don't recall why this happen, I guess I started on indirect mode and after that I converted it to direct mode. Thanks in advance. Best regards, Juan
Well, it's normal to have broken symlinks if the content of a file is not present.
git annex get
will get the file content and replace the symlink with it.If the symlink is not broken, you can run
git annex fsck
on the file and it will notice and fix this inconsistency.Some old versions of git-annex had bugs in direct mode that could result in files being left as symlinks like that. I have not seen any bugs lately in that area. If you have a way to get a repository into that state, file a bug report with a test case.
I went back to indirect mode and stayed there. Every file is now accesible. I don't know what happened. Thanks.