]> dgit.raspbian.org Git - git-annex.git/commit
finish P2P protocol proxying
authorJoey Hess <joeyh@joeyh.name>
Wed, 12 Jun 2024 14:40:51 +0000 (10:40 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 12 Jun 2024 14:40:51 +0000 (10:40 -0400)
commit96853cd8332a43e70aac138ef89882d6c44395c0
tree0f0dadde0b4aca2c12856616989419da8406aa5f
parentf98605bce7ecfa7fd155d501accb2734d3e9a422
finish P2P protocol proxying

CONNECT is not supported by git-annex-shell p2pstdio, but for proxying
to tor-annex remotes, it will be supported, and will make a git pull/push
to a proxied remote work the same with that as it does over ssh,
eg it accesses the proxy's git repo not the proxied remote's git repo.

The p2p protocol docs say that NOTIFYCHANGES is not always supported,
and it looked annoying to implement it for this, and it also seems
pretty useless, so make it be a protocol error. git-annex remotedaemon
will already be getting change notifications from the proxy's git repo,
so there's no need to get additional redundant change notifications for
proxied remotes that would be for changes to the same git repo.
P2P/Proxy.hs
doc/design/p2p_protocol.mdwn
doc/todo/git-annex_proxies.mdwn