Skip to content

Main branch has an unstashed file - this error comes up often #119

@siraj-samsudeen

Description

@siraj-samsudeen

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 &&
PROJECT_ROOT=$(
/.pilot/bin/pilot worktree cleanup --force --json
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleased

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions