summaryrefslogtreecommitdiff
path: root/internal/executor/container.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/executor/container.go')
-rw-r--r--internal/executor/container.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/executor/container.go b/internal/executor/container.go
index 8b244c6..95717b4 100644
--- a/internal/executor/container.go
+++ b/internal/executor/container.go
@@ -473,7 +473,7 @@ func detectUncommittedChanges(workspace string) error {
if err == nil {
for _, line := range strings.Split(strings.TrimSpace(string(diffOut)), "\n") {
if line != "" && !isScaffold(line) {
- return fmt.Errorf("agent left uncommitted changes (work would be lost on sandbox deletion):\n%s\nInstructions must include: git add -A && git commit && git push origin master", strings.TrimSpace(string(diffOut)))
+ return fmt.Errorf("agent left uncommitted changes (work would be lost on sandbox deletion):\n%s\nInstructions must include: git add -A && git commit && git push origin main", strings.TrimSpace(string(diffOut)))
}
}
}
@@ -489,7 +489,7 @@ func detectUncommittedChanges(workspace string) error {
}
}
if len(dirty) > 0 {
- return fmt.Errorf("agent left untracked files not committed (work would be lost on sandbox deletion):\n%s\nInstructions must include: git add -A && git commit && git push origin master", strings.Join(dirty, "\n"))
+ return fmt.Errorf("agent left untracked files not committed (work would be lost on sandbox deletion):\n%s\nInstructions must include: git add -A && git commit && git push origin main", strings.Join(dirty, "\n"))
}
}