fixup annex link target calculation when submodules are used in filesystems not supporting symlinks

This commit is contained in:
Joey Hess 2015-03-04 16:08:41 -04:00
parent df4543eb38
commit cf903d5a3c
3 changed files with 27 additions and 10 deletions

View file

@ -5,7 +5,9 @@ Git normally makes a `.git` **file** in a
submodule, that points to the real git repository under `.git/modules/`.
This presents problems for git-annex. So, when used in a submodule,
git-annex will automatically replace the `.git` file with a symlink
pointing at the git repository.
pointing at the git repository. (When the filesystem doesn't support
symlinks, direct mode is used, and submodules are supported in that
setup too.)
With that taken care of, git-annex should work ok in submodules. Although
this is a new and somewhat experimental feature.
@ -18,4 +20,3 @@ Known problems:
will refuse to delete it, complaining that the
submodule "uses a .git directory". Workaround: Use `rm -rf`
to delete the tree, and then `git commit`.
* This won't work on filesystems not supporting symlinks.