avoid crashing when there are remotes using unparseable urls
authorJoey Hess <joeyh@joeyh.name>
Mon, 18 Jan 2021 18:52:56 +0000 (14:52 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 18 Jan 2021 18:59:08 +0000 (14:59 -0400)
commit2aa4fab62a69bb3fb5073d571d8ec110a61a144e
treefee9bb72de02ad9dc90c3b2c84b703cddf0fa3f2
parentaafb7f6eb9469753e21bf0a4bf61f98a7fddc7b0
avoid crashing when there are remotes using unparseable urls

Including the non-standard URI form that git-remote-gcrypt uses for rsync.

Eg, "ook://foo:bar" cannot be parsed because "bar" is not a valid port
number. But git could have a remote with that, it would try to run
git-remote-ook to handle it. So, git-annex has to allow for such things,
rather than crashing.

This commit was sponsored by Luke Shumaker on Patreon.
CHANGELOG
Git.hs
Git/Construct.hs
Git/GCrypt.hs
Git/Types.hs
Git/Url.hs
Remote/GCrypt.hs
doc/bugs/git_annex_doesn__39__t_cope_with_a_gcrypt__58____58__rsync__58____47____47__.mdwn