Skip to content

Commit

Permalink
do not check fork on commit as we already check tree compat and commi…
Browse files Browse the repository at this point in the history
…t to main fork
  • Loading branch information
mafintosh committed Jan 3, 2025
1 parent 0541a11 commit de7444d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit de7444d

Please sign in to comment.