addurl, importfeed: Fix failure when annex.securehashesonly is set
authorJoey Hess <joeyh@joeyh.name>
Mon, 27 Mar 2023 19:10:46 +0000 (15:10 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 27 Mar 2023 19:10:46 +0000 (15:10 -0400)
commit24ae4b291c22694d517211be3183974bfcbbc8cd
treed38c9abdb306d623d9d8bb310fbf35bc16cce2e4
parentd4cb7afeed810ac58c73b4f18ef124fc206be7c4
addurl, importfeed: Fix failure when annex.securehashesonly is set

The temporary URL key used for the download, before the real key is
generated, was blocked by annex.securehashesonly.

Fixed by passing the Backend that will be used for the final key into
runTransfer. When a Backend is provided, have preCheckSecureHashes
check that, rather than the key being transferred.

Sponsored-by: unqueued on Patreon
Annex/Ingest.hs
Annex/Transfer.hs
Backend.hs
CHANGELOG
Command/AddUrl.hs
Command/CalcKey.hs
Command/Migrate.hs
Command/Reinject.hs
Command/SendKey.hs
Remote/Git.hs
doc/bugs/securehashesonly_conflicts_with_addurl.mdwn