-
Notifications
You must be signed in to change notification settings - Fork 135
Main branch has an unstashed file - this error comes up often #119
Description
Pilot is on auto-pilot and I did not touch any files, but I often see this error message when it tries to finish the work and merge the worktree...
Bash(/.pilot/bin/pilot worktree sync --json slice1-csv-sqlite-sources &&/.pilot/bin/pilot worktree cleanup --force --json
PROJECT_ROOT=$(
slice1-csv-sqlite-sources | python3 -c "import sys,json;
print(json.load(sys.stdin)['project_root'])") && cd "$PROJECT_ROOT")
⎿ Error: Exit code 1
{"success": false, "error": "Working tree has uncommitted changes. Commit or
discard them before syncing.\nRun: git status (to see what's changed)\nThen: git
stash (to temporarily set aside changes)", "files_changed": 0, "commit_hash":
null}
⎿ Async hook PostToolUse completed
⏺ The main branch has an untracked file. Let me stash it.