forum/Multiple remotes with the same pathgit-annexhttp://git-annex.branchable.com/forum/Multiple_remotes_with_the_same_path/git-annexikiwiki2016-02-29T17:25:17Zcomment 1http://git-annex.branchable.com/forum/Multiple_remotes_with_the_same_path/comment_1_78f2d8e3906c11ba5753478d08973bd2/joey2016-02-29T15:52:25Z2016-02-29T15:47:39Z
<p>git-annex is not getting confused; it's looking at the current content of
the remote and using that uuid. Failing to do so would constitute
confusion.</p>
<p>If you want the remote to only work when the drive is plugged into a single
host, you need to make the remote path only reach a repository on that
host. One way would be a symlink, eg <code>/home/grawity/Attic/rain-Software ->
Software</code> on rain.</p>
<p>Or, just use the repository description, eg
<code>--in grawity@rain:~/Attic/Software</code>. Note that the description can be
changed to something easier to type.</p>
comment 2http://git-annex.branchable.com/forum/Multiple_remotes_with_the_same_path/comment_2_8cd3edf2e71e904f1b651abdfd7a4499/grawity2016-02-29T17:25:17Z2016-02-29T17:25:17Z
Hmm, I still think that avoiding duplicating uuids would be smarter behavior, but the host symlinks will do just fine. Thanks for the suggestion.