src/pull: Support local pulls for collection–refs
authorPhilip Withnall <withnall@endlessm.com>
Mon, 18 Sep 2017 13:01:21 +0000 (14:01 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 27 Sep 2017 14:44:00 +0000 (14:44 +0000)
commitf923c2e1eaebe0c781f07d34ae1a03f94357bccd
tree402fa76a55cc641f4f15f744d0847b151d28ae88
parent5963d5a2a95b0aea7d306fc4ed5967b3e6ac4d83
src/pull: Support local pulls for collection–refs

Previously, collection–refs could only be pulled from a repository if it
had a summary file (which listed them). There was no way to pull from a
local repository which doesn’t have a summary file, and where the refs
were stored as refs/remotes/$remote/$ref, with a config section linking
that $remote to the queried collection ID.

Fix that by explicitly supporting pull_data->remote_repo_local in
fetch_ref_contents().

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #1182
Approved by: cgwalters
src/libostree/ostree-repo-pull.c
tests/pull-test.sh