From de7444d71b7a3d381a8354c9a9812002d404b533 Mon Sep 17 00:00:00 2001 From: Mathias Buus Date: Fri, 3 Jan 2025 17:50:51 +0100 Subject: [PATCH] do not check fork on commit as we already check tree compat and commit to main fork --- lib/core.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/core.js b/lib/core.js index 7234071f..698067a5 100644 --- a/lib/core.js +++ b/lib/core.js @@ -381,10 +381,6 @@ module.exports = class Core { try { srcLock = await state.mutex.lock() - if (this.tree.fork !== state.tree.fork) { - throw new Error('Invalid commit: different fork') - } - if (this.tree.length > state.tree.length) { throw new Error('Invalid commit: partial commit') // TODO: partial commit in the future if possible }