git-annex/doc/forum/Unlocking_files_gives_symlink_content.mdwn
erewhon_smith@6671dff14d578cb6d55a3ca285f2c54151b69f60 8c22c81b48
2018-10-17 18:50:34 +00:00

14 lines
989 B
Markdown

I am just beginning to use git-annex so it is possible that the following issue was caused by my own mistake. It cropped up after commiting a number of files that had been moved between subfolders, and added with `git add -A` etc.
When files are locked, I am able to view their contents. However, when I unlock certain files, their contents appear to be replaced by the contents of the symlink. Locking them again allows me to view their contents. For instance, with one unlocked file, say `test.md`, I get
$ cat test.md
/annex/objects/SHA256E-s535--d37feb3390801b601a9cee77f6467f01aaabbb293149d20d75df26172a3594fd.md
Some files still behave as expected.
My git-annex repo is in my Linux home folder on an ext4 partition. My repo uses git-annex version 6.
I did have a look at [this discussion](https://git-annex.branchable.com/forum/git_annex_file_content_replaced_with_symlink_content/) but none of the solutions there seemed to do the trick.
Any help is much appreciated.