Repository navigation
A pushed branch names itself, and the compare's clone knows it as origin's - #116
Merged
Merged
Conversation
…gin's `compare_train` clones fresh and adds each arm as a `--detach` worktree. That flag turns off the DWIM that would otherwise read a bare branch name as `origin/<name>`, and a fresh clone has no local branch but the one it checked out -- so `--ref <branch>` died on `fatal: invalid reference` for every branch except `main`, which is the only one the harness could ever compare. Resolve each arm's ref before handing it to the worktree: as given first, so tags and commits keep working, then `origin/<ref>`.
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.
compare_train(the #115 harness) clones fresh and adds each arm as agit worktree add --detach. That flag turns off the DWIM that would otherwise read a bare branch name asorigin/<name>, and a fresh clone carries no local branch but the one it checked out. So--ref <branch>died onfatal: invalid reference: <branch>for every pushed branch;mainworked only because it is the clone's checked-out branch, which made the harness able to compare main against main and nothing else.Resolve each arm's ref against the clone before handing it to the worktree: as given first, so a tag or a commit SHA keeps working, then
origin/<ref>.Checked against a fresh clone of this repo:
and
git worktree add --quiet --detach <path> origin/bf16-expert-bufferslands on 1e455df, where the bare name fails with exit 128.No GPU run: the change is upstream of the build and neither arm's source nor either binary moves.