]> dgit.raspbian.org Git - git-annex.git/commit
a local git remote cannot proxy
authorJoey Hess <joeyh@joeyh.name>
Wed, 12 Jun 2024 14:16:04 +0000 (10:16 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 12 Jun 2024 14:16:04 +0000 (10:16 -0400)
commitf98605bce7ecfa7fd155d501accb2734d3e9a422
treebdfaa61935a5f8ee9a02459f0082eec58adaa0a2
parentc6e0710281e64c86dd1d9b94f2ff7386552c305d
a local git remote cannot proxy

Prevent listProxied from listing anything when the proxy remote's
url is a local directory. Proxying does not work in that situation,
because the proxied remotes have the same url, and so git-annex-shell
is not run when accessing them, instead the proxy remote is accessed
directly.

I don't think there is any good way to support this. Even if the instantiated
git repos for the proxied remotes somehow used an url that caused it to use
git-annex-shell to access them, planned features like `git-annex copy --to
proxy` accepting a key and sending it on to nodes behind the proxy would not
work, since git-annex-shell is not used to access the proxy.

So it would need to use something to access the proxy that causes
git-annex-shell to be run and speaks P2P protocol over it. And we have that.
It's a ssh connection to localhost. Of course, it would be possible to
take ssh out of that mix, and swap in something that does not have
encryption overhead and authentication complications, but otherwise
behaves the same as ssh. And if the user wants to do that, GIT_SSH
does exist.
Remote/Git.hs
doc/todo/git-annex_proxies.mdwn