pull: Allow disabling commit binding verification
authorDan Nicholson <dbn@endlessos.org>
Thu, 17 Dec 2020 21:07:08 +0000 (14:07 -0700)
committerDan Nicholson <dbn@endlessos.org>
Thu, 17 Dec 2020 21:07:08 +0000 (14:07 -0700)
commit4db2ba0eb1576cbf7bd5bfc0137af1073d007cd5
treeffb76631c8ba6c660f4948167caf5338f1a65cda
parent5551c54c6e6eba8145b95bd3b28223f1941a9e8d
pull: Allow disabling commit binding verification

In some cases such as backups or mirroring you may want to pull commits
from one repo to another even if there commits that have incorrect
bindings. Fixing the commits in the source repository to have correct
bindings may not be feasible, so provide a pull option to disable
verification.

For Endless we have several repositories that predate collection IDs and
ref bindings. Later these repositories gained collection IDs to support
the features they provide and ref bindings as the ostree tooling was
upgraded. These repositories contain released commits that were valid to
the clients they were targeting at the time. Correcting the bindings is
not really an option as it would mean invalidating the repository
history.
bash/ostree
man/ostree-pull-local.xml
man/ostree-pull.xml
src/libostree/ostree-repo-pull-private.h
src/libostree/ostree-repo-pull.c
src/ostree/ot-builtin-pull-local.c
src/ostree/ot-builtin-pull.c
tests/test-pull-collections.sh