fix: orchestrator rebase fetch creates proper remote ref#143
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Fixes the pipeline orchestrator’s “rebase PRs behind main” step by ensuring the PR head branch is fetched into a proper refs/remotes/origin/<branch> remote-tracking ref (avoiding fatal: 'origin/BRANCH' is not a commit).
Changes:
- Fetch the PR branch with an explicit refspec mapping to
refs/remotes/origin/$BRANCH. - Fix
git checkoutinvocation to correctly useorigin/$BRANCHas a start-point (not a pathspec).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| # Fetch latest and attempt rebase | ||
| git fetch origin main "$BRANCH" || { | ||
| # Fetch latest refs for main and the PR branch | ||
| git fetch origin main "$BRANCH":"refs/remotes/origin/$BRANCH" || { |
| continue | ||
| } | ||
| git checkout -B "$BRANCH" -- "origin/$BRANCH" | ||
| git checkout -B "$BRANCH" "origin/$BRANCH" |
git fetch origin BRANCH doesn't create origin/BRANCH tracking ref, causing 'not a commit' error on checkout. Fixed by explicitly mapping the fetch to refs/remotes/origin/BRANCH. Part of #135 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
8a62308 to
bcae7ce
Compare
microsasa
pushed a commit
that referenced
this pull request
Mar 17, 2026
- Changelog: added entries for PRs #140-#143, dependabot bumps, orchestrator v1/v2, PR #113 auto-merge success - Agentic-workflows: replaced removed orchestrator section with current bash implementation, updated agent inventory, added history entry - Test-analysis: changed cron from weekly to daily (0 9 * * *) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
microsasa
pushed a commit
that referenced
this pull request
Mar 19, 2026
Changelog: added entries for orchestrator v1/v2 (PRs #140-#143), the v3/responder/trigger-disable reverts, and key discoveries. Agentic-workflows: updated orchestrator section (v1+v2 on main, v3 reverted), responder status (target '*' fix, workflow_dispatch), agent inventory (added orchestrator, updated responder/quality-gate), history (3 new entries covering March 17-18), and 3 new pitfalls (safe output target, review trigger loops, over-specifying agents). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the orchestrator rebase step failing with
fatal: 'origin/BRANCH' is not a commit.git fetch origin BRANCHfetches to FETCH_HEAD but doesn't create a tracking ref. Fixed by explicitly mapping:git fetch origin BRANCH:refs/remotes/origin/BRANCH.Discovered during first live test of v2 on PR #113.
Part of #135