git-annex/Remote
Joey Hess faecd73f32
Support GIT_SSH and GIT_SSH_COMMAND
They are handled close the same as they are by git. However, unlike git,
git-annex sometimes needs to pass the -n parameter when using these.

So, this has the potential for breaking some setup, and perhaps there ought
to be a ANNEX_USE_GIT_SSH=1 needed to use these. But I'd rather avoid that
if possible, so let's see if anyone complains.

Almost all places where "ssh" was run have been changed to support the env
vars. Anything still calling sshOptions does not support them. In
particular, rsync special remotes don't. Seems that annex-rsync-transport
already gives sufficient control there.

(Fixed in passing: Remote.Helper.Ssh.toRepo used to extract
remoteAnnexSshOptions and pass them to sshOptions, which was redundant
since sshOptions also extracts those.)

This commit was sponsored by Jeff Goeke-Smith on Patreon.
2017-03-17 16:20:37 -04:00
..
Directory remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
External implementation of peer-to-peer protocol 2016-11-17 18:30:50 -04:00
Helper Support GIT_SSH and GIT_SSH_COMMAND 2017-03-17 16:20:37 -04:00
Rsync remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
WebDAV WebDAV: Remove a bogus trailing slash from the end of the url to the temporary store location for a key. Thanks, wzhd. 2016-02-09 11:50:40 -04:00
BitTorrent.hs Some optimisations to string splitting code. 2017-01-31 19:06:22 -04:00
Bup.hs Support GIT_SSH and GIT_SSH_COMMAND 2017-03-17 16:20:37 -04:00
Ddar.hs Support GIT_SSH and GIT_SSH_COMMAND 2017-03-17 16:20:37 -04:00
Directory.hs add SetupStage parameter to RemoteType.setup 2017-02-07 14:55:58 -04:00
External.hs Windows: Improve handling of shebang in external special remote program, searching for the program in the PATH. 2017-03-08 15:59:00 -04:00
GCrypt.hs AssociatedFile newtype 2017-03-10 13:35:31 -04:00
Git.hs AssociatedFile newtype 2017-03-10 13:35:31 -04:00
Glacier.hs add SetupStage parameter to RemoteType.setup 2017-02-07 14:55:58 -04:00
Hook.hs add SetupStage parameter to RemoteType.setup 2017-02-07 14:55:58 -04:00
List.hs stub Remote.P2P 2016-12-06 12:27:58 -04:00
P2P.hs Increase default cost for p2p remotes from 200 to 1000. This makes git-annex prefer transferring data from special remotes when possible. 2017-01-06 15:23:30 -04:00
Rsync.hs Support GIT_SSH and GIT_SSH_COMMAND 2017-03-17 16:20:37 -04:00
S3.hs S3: Fix check of uuid file stored in bucket, which was not working. 2017-02-13 15:35:24 -04:00
Tahoe.hs add SetupStage parameter to RemoteType.setup 2017-02-07 14:55:58 -04:00
Web.hs Avoid backtraces on expected failures when built with ghc 8; only use backtraces for unexpected errors. 2016-11-15 21:29:54 -04:00
WebDAV.hs add SetupStage parameter to RemoteType.setup 2017-02-07 14:55:58 -04:00