You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Refresh the remote default branch during selector-free updates #20
A Git dependency without branch, tag, or rev resolves through refs/remotes/origin/HEAD. Vex fetches refs but does not refresh that symbolic ref. If the remote default branch changes, vex update continues resolving the old branch indefinitely.
Reproduction
Verified on master at 8c2d93a:
Create a Git dependency whose default branch is main.
Add it without a selector and run vex fetch.
Create a newer next branch and change the remote HEAD to next.
Confirm git ls-remote --symref <remote> HEAD reports refs/heads/next.
Run vex update.
Vex leaves the dependency at the old main commit because the managed checkout still has origin/HEAD -> origin/main.
Expected behavior
An explicit update of a selector-free dependency should follow the remote default branch as it exists at update time.
Acceptance criteria
Refresh or resolve the remote HEAD when updating a selector-free dependency.
Keep ordinary build, run, check, tree, and fetch operations pinned to the locked commit.
Support both full and targeted updates.
Add a local Git integration test that changes the advertised default branch.
Do not fetch unrelated dependencies during a targeted update.
Activity