diff options
author | Dan Nicholson <dbn@endlessos.org> | 2020-12-17 14:07:08 -0700 |
---|---|---|
committer | Dan Nicholson <dbn@endlessos.org> | 2020-12-17 14:07:08 -0700 |
commit | 4db2ba0eb1576cbf7bd5bfc0137af1073d007cd5 (patch) | |
tree | ffb76631c8ba6c660f4948167caf5338f1a65cda /src/libostree/ostree-repo-pull-private.h | |
parent | 5551c54c6e6eba8145b95bd3b28223f1941a9e8d (diff) | |
download | ostree-4db2ba0eb1576cbf7bd5bfc0137af1073d007cd5.tar.gz |
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.
Diffstat (limited to 'src/libostree/ostree-repo-pull-private.h')
-rw-r--r-- | src/libostree/ostree-repo-pull-private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libostree/ostree-repo-pull-private.h b/src/libostree/ostree-repo-pull-private.h index a827557a..d4c3e971 100644 --- a/src/libostree/ostree-repo-pull-private.h +++ b/src/libostree/ostree-repo-pull-private.h @@ -70,6 +70,7 @@ typedef struct { gboolean require_static_deltas; gboolean disable_static_deltas; gboolean has_tombstone_commits; + gboolean disable_verify_bindings; GBytes *summary_data; char *summary_etag; |