Commit Graph

2 Commits

Author SHA1 Message Date
unkin-agent 0695c4c2e3 Prepare for GitHub migration
ci / go (pull_request) Failing after 11m25s
ci / actions (pull_request) Failing after 11m25s
ci / ci (pull_request) Failing after 11m26s
ci / release-snapshot (pull_request) Failing after 1s
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci / goreleaser-check (pull_request) Has been cancelled
2026-11-27 22:10:21 +11:00
unkin-agent 7510187243 agentws: check out --branch from origin when it exists
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline failed
`agentws new --branch` always forked from the base branch, so a worktree for a
branch that already existed on origin started at the base's HEAD with none of
the branch's commits, and callers had to reset --hard afterwards to recover.

- Check out an existing origin/<branch> and set the branch to track it
- Fast-forward a stale local branch onto origin, keeping unpushed commits
- Fork from --from or the remote default only when origin lacks the branch
- Name which of the two paths was taken in the command's output
- Ignore --from, with a note, when the branch is already on origin
2026-09-19 16:11:59 +10:00