git-annex/Remote
Joey Hess a19a3076b5
ssh exit status 255 is a connection problem
Previously, when the git config was unable to be read from a ssh remote,
it would try to git fetch from it to determine if the remote was
otherwise accessible. That was unnessary work, since exit status 255
indicates a connection problem.

As well as avoiding the extra work of the fetch, this also improves
things when a ssh remote cannot be connected to due to a problem with
the git-annex ssh control socket. In that situation, ssh will also exit 255.
Before, the git fetch was tried in that situation, and would succeed, since
it does not use the git-annex ssh control socket. git-annex would conclude
that git-annex-shell was not installed on the remote, which could be wrong.

I suppose it also used to be possible for the user to need to enter a
ssh password on each connection to the remote. If they entered the wrong
password for the git-annex-shell call, but then the right password for
the git fetch, it would also incorrectly set annex-ignore, and that
situation is also now fixed.
2025-01-03 14:46:16 -04:00
..
Directory stream through proxy when using fileRetriever 2024-10-15 14:29:06 -04:00
External added retrieveKeyFileInOrder and ORDERED to external special remote protocol 2024-10-15 15:40:14 -04:00
Helper fix reversion in getting from unchunked encrypted special remotes 2024-10-28 12:20:10 -04:00
List auto-init autoenable=yes 2020-05-27 12:40:35 -04:00
Rsync use NonEmpty for dirHashes 2024-09-26 18:15:00 -04:00
WebDAV Apply codespell -w throughout 2023-03-17 15:14:58 -04:00
Adb.hs added retrieveKeyFileInOrder and ORDERED to external special remote protocol 2024-10-15 15:40:14 -04:00
BitTorrent.hs added retrieveKeyFileInOrder and ORDERED to external special remote protocol 2024-10-15 15:40:14 -04:00
Borg.hs added retrieveKeyFileInOrder and ORDERED to external special remote protocol 2024-10-15 15:40:14 -04:00
Bup.hs added retrieveKeyFileInOrder and ORDERED to external special remote protocol 2024-10-15 15:40:14 -04:00
Ddar.hs added retrieveKeyFileInOrder and ORDERED to external special remote protocol 2024-10-15 15:40:14 -04:00
Directory.hs added retrieveKeyFileInOrder and ORDERED to external special remote protocol 2024-10-15 15:40:14 -04:00
External.hs added retrieveKeyFileInOrder and ORDERED to external special remote protocol 2024-10-15 15:40:14 -04:00
GCrypt.hs ssh exit status 255 is a connection problem 2025-01-03 14:46:16 -04:00
Git.hs ssh exit status 255 is a connection problem 2025-01-03 14:46:16 -04:00
GitLFS.hs added retrieveKeyFileInOrder and ORDERED to external special remote protocol 2024-10-15 15:40:14 -04:00
Glacier.hs added retrieveKeyFileInOrder and ORDERED to external special remote protocol 2024-10-15 15:40:14 -04:00
Hook.hs added retrieveKeyFileInOrder and ORDERED to external special remote protocol 2024-10-15 15:40:14 -04:00
HttpAlso.hs added retrieveKeyFileInOrder and ORDERED to external special remote protocol 2024-10-15 15:40:14 -04:00
List.hs clarify comment 2024-06-04 14:29:24 -04:00
P2P.hs added retrieveKeyFileInOrder and ORDERED to external special remote protocol 2024-10-15 15:40:14 -04:00
Rclone.hs rclone special remote 2024-04-17 15:20:37 -04:00
Rsync.hs added retrieveKeyFileInOrder and ORDERED to external special remote protocol 2024-10-15 15:40:14 -04:00
S3.hs remove i386ancient and need at least debian stable to build 2025-01-01 14:15:55 -04:00
Tahoe.hs added retrieveKeyFileInOrder and ORDERED to external special remote protocol 2024-10-15 15:40:14 -04:00
Web.hs added retrieveKeyFileInOrder and ORDERED to external special remote protocol 2024-10-15 15:40:14 -04:00
WebDAV.hs added retrieveKeyFileInOrder and ORDERED to external special remote protocol 2024-10-15 15:40:14 -04:00