aboutsummaryrefslogtreecommitdiffstats
path: root/src/remake
diff options
context:
space:
mode:
Diffstat (limited to 'src/remake')
-rw-r--r--src/remake/snapshot.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remake/snapshot.rs b/src/remake/snapshot.rs
index ee0a2cd..dc61810 100644
--- a/src/remake/snapshot.rs
+++ b/src/remake/snapshot.rs
@@ -274,7 +274,7 @@ pub(crate) fn build(
) -> Result<Snapshot, SnapshotError> {
// fork_at with unknown heads would quietly build something else.
for head in params.base_heads {
- if source.get_change_by_hash(head).is_none() {
+ if !crate::document::changes::holds(source, head) {
return Err(SnapshotError::MissingBase(*head));
}
}