Fixing git checkout after retrying hooks.
A place where we didn't update the wip branch thing.
diff --git a/loop/agent.go b/loop/agent.go
index 25c3807..4654394 100644
--- a/loop/agent.go
+++ b/loop/agent.go
@@ -1114,7 +1114,7 @@
}
// Retry the checkout operation
- cmd = exec.CommandContext(ctx, "git", "checkout", "-f", a.config.Commit)
+ cmd = exec.CommandContext(ctx, "git", "checkout", "-f", "-B", "sketch-wip", a.config.Commit)
cmd.Dir = a.workingDir
if retryOut, retryErr := cmd.CombinedOutput(); retryErr != nil {
return fmt.Errorf("git checkout %s failed even after removing hooks: %s: %w", a.config.Commit, retryOut, retryErr)