pull: Cleanly error out on unknown schemes
authorColin Walters <walters@verbum.org>
Tue, 27 Apr 2021 15:35:13 +0000 (11:35 -0400)
committerColin Walters <walters@verbum.org>
Tue, 27 Apr 2021 17:11:18 +0000 (13:11 -0400)
commit0f3bccf640947306a0369ef3cecc756eef3f106d
tree91cdf4b806404a353ea36460c4243acde754bf88
parent0fcf4a3f3019a960c0213c33cec9f2cd06400231
pull: Cleanly error out on unknown schemes

Previous to this we'd trip an assertion `abort()` deep in the curl code if e.g.
a user did `ostree remote add foo htttp://...` etc.

Motivated by considering supporting "external remotes" where code outside
ostree does a pull, but we want to reuse the signing verification infrastructure.
src/libostree/ostree-fetcher-uri.c
src/libostree/ostree-fetcher.h
src/libostree/ostree-repo-pull.c
tests/pull-test.sh