Fixed issue with checkpoint commit hashes (#2543)

This commit is contained in:
canvrno
2025-03-29 18:51:20 -07:00
committed by GitHub
parent 329c269a8c
commit f948e2bc7b
@@ -166,8 +166,8 @@ class CheckpointTracker {
"--allow-empty": null,
"--no-verify": null,
})
const commitHash = result.commit || ""
console.warn(`Checkpoint commit created.`)
const commitHash = (result.commit || "").replace(/^HEAD\s+/, "")
console.warn(`Checkpoint commit created: `, commitHash)
const durationMs = Math.round(performance.now() - startTime)
telemetryService.captureCheckpointUsage(this.taskId, "commit_created", durationMs)