Skip to content

Commit f948e2b

Browse files
authored
Fixed issue with checkpoint commit hashes (RooCodeInc#2543)
1 parent 329c269 commit f948e2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/integrations/checkpoints/CheckpointTracker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ class CheckpointTracker {
166166
"--allow-empty": null,
167167
"--no-verify": null,
168168
})
169-
const commitHash = result.commit || ""
170-
console.warn(`Checkpoint commit created.`)
169+
const commitHash = (result.commit || "").replace(/^HEAD\s+/, "")
170+
console.warn(`Checkpoint commit created: `, commitHash)
171171

172172
const durationMs = Math.round(performance.now() - startTime)
173173
telemetryService.captureCheckpointUsage(this.taskId, "commit_created", durationMs)

0 commit comments

Comments
 (0)