- External HD A: annex (contains files with long paths)
- External HD B: annex (synced with A, doesn't have the contents for files with long paths)
- laptop HD: annex (syncing with B fails: paths too long)
How should I resolve this?
- Can I rename the broken symlinks on B to shorten the paths, and then sync to the laptop? Would this be propagated to A when it's connected again?
- Can I
git rm too/long/paths
on B and then sync?
It depends, is it failing because the filenames checked into git are too long? Or because the symlinks are links to too long paths?
In the former case, you can
git rename
files as you like. As with any change you make to files in a git repository, that will propigate to other git repositories in the usual ways.In the latter case, you might be using a hash like SHA512 that causes problimatically long paths, and then
git annex migrate --backend=SHA256
might help.