Denis Laxalde wrote:
> When a remote is defined using an url prefix alias through the
> url.<base>.insteadOf configuration settings, git-annex apparently fails
> to resolve the complete url and connect to the remote.

It does not support insteadOf at all yet, so is using whatever
remote.origin.url is configured.

Partly because there is also pushInsteadOf, I'm a bit uncertian what
git-annex should do. Is git-annex a push or a pull? It's neither really.
One way to use insteadOf is to rewrite git+ssh:// to git:// for pulls,
while continuing to use ssh for pushes. In this case, it would seem best
for git-annex to use pushInsteadOf.

I suppose if you're using insteadOf to temporarily repoint a repository
to a different server, you won't have a pushInsteadOf, so git-annex
could use the former. Particularly if you're using it to temporarily
switch the domain name used for accessing the same server, that would
be a good use case to support.

However, if that different server has a different git annex on it,
git-annex would think it had stored a file in the old annex, while
really storing it in the insteadOf one. Normally it would not check
that it's seeing the same annex it thought was there. To avoid
this situation, I might try to make git-annex-shell verify the expected
uuid.

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature

Reply via email to