git-annex/Remote
Joey Hess a622488758
remove CHECKURL-MULTI single url response special case
Removed undocumented special case in handling of a CHECKURL-MULTI response
with only a single file listed. Rather than ignoring the url that was in
the response, use it. This allows external special remotes that want to
provide some better url to do so, although I don't entirely agree with
using CHECKURL-MULTI to accomplish that. I'm more of the feeling that an
undocumented special case that throws data away is just not a good idea.

This could in theory break some external special remote program that relied
on the current behavior, but its seems unlikely that it would because such
a program must already handle the multiple url case, unless it only ever
provides a single url response to CHECKURL-MULTI.

Make addurl --file work with a single item CHECKURL-MULTI response.
It already did for external special remotes due to the special case,
but now it also will for builtin ones like the BitTorrent special remote.

This commit was sponsored by Ilya Shlyakhter on Patron.
2018-10-29 14:52:12 -04:00
..
Directory remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
External add GETINFO to external protocol (for ronnypfa) 2018-06-08 11:56:24 -04:00
Helper instrument P2P --debug with connection and thread info 2018-10-22 15:52:11 -04:00
Rsync Support exporttree=yes for rsync special remotes. 2018-02-28 13:36:20 -04:00
WebDAV webdav: Avoid unncessisarily creating the collection at the top of the repo 2017-10-11 11:10:33 -04:00
Adb.hs add Remote.readonly 2018-08-30 11:12:18 -04:00
BitTorrent.hs clean up url removal presence update 2018-10-04 17:35:49 -04:00
Bup.hs export appendonly support 2018-08-30 11:18:20 -04:00
Ddar.hs add Remote.readonly 2018-08-30 11:12:18 -04:00
Directory.hs add Remote.readonly 2018-08-30 11:12:18 -04:00
External.hs remove CHECKURL-MULTI single url response special case 2018-10-29 14:52:12 -04:00
GCrypt.hs add Remote.readonly 2018-08-30 11:12:18 -04:00
Git.hs Improve display when git config download from a http remote fails. 2018-10-03 12:31:09 -04:00
Glacier.hs remote.name.annex-security-allow-unverified-downloads 2018-09-25 15:34:47 -04:00
Hook.hs remote.name.annex-security-allow-unverified-downloads 2018-09-25 15:34:47 -04:00
List.hs change Remote.repo to Remote.getRepo 2018-06-04 15:30:26 -04:00
P2P.hs clean P2P protocol shutdown on EOF try 2 2018-09-25 16:49:59 -04:00
Rsync.hs centralized "yes"/"no" parsing 2018-10-10 11:14:27 -04:00
S3.hs centralized "yes"/"no" parsing 2018-10-10 11:14:27 -04:00
Tahoe.hs centralized "yes"/"no" parsing 2018-10-10 11:14:27 -04:00
Web.hs clean up url removal presence update 2018-10-04 17:35:49 -04:00
WebDAV.hs add Remote.readonly 2018-08-30 11:12:18 -04:00