fix: remove unnecessary --no-verify option from commit arguments in saveCheckpoint method

This commit is contained in:
NaccOll 2025-09-17 08:25:24 +08:00
parent e10d38c6c0
commit 453a5c9665

View file

@ -240,7 +240,7 @@ export abstract class ShadowCheckpointService extends EventEmitter {
const startTime = Date.now()
await this.stageAll(this.git)
const commitArgs = options?.allowEmpty ? { "--allow-empty": null, "--no-verify": null } : undefined
const commitArgs = options?.allowEmpty ? { "--allow-empty": null } : undefined
const result = await this.git.commit(message, commitArgs)
const fromHash = this._checkpoints[this._checkpoints.length - 1] ?? this.baseHash!
const toHash = result.commit || fromHash