Repository navigation
Fix workspace fetch into the current branch - #69
Conversation
Store fetched branch refs under `refs/remotes/origin/xxx` and checkout the returned ref
|
Thanks for this change — the refspec remapping is a clean fix, and the new end-to-end fixture tests drive real git rather than mocks. OverviewSummaryThis PR makes Good points
Main Issues
Additional Notes
|
|
@proval-0e6d07 review |
|
Reviewed — full findings are in the review above; here's the verdict for this thread: VerdictThe core change is correct: remapping Blocking issue
Minor
Once the fixture setup allows the |
|
Thanks for the follow-up — this push addresses the blocking fixture issue from the last review and restructures the suite for isolation. The change set is small and focused. Overviewa. Summary b. Good points
Main IssuesNone in this push — the prior blocking issue is fixed. Additional NotesOn success, CI will report the seven inner tests as a single wrapper test named "passes workspace integration in an isolated process" ( Once CI confirms the suite is green, this is good to merge. |
|
Thanks for this job @NriotHrreion! I reviewed it and you made it in best way I'll merge it immediately |
close #66
Description
Proval fetches the remote branch directly into a local branch with the same name (like
ref/heads/master). When that branch matched the default branch created bygit init, git will reject the fetch because it would update the currently checked out branch.What changed
Fetch the remote branch into a remote ref
refs/remotes/origin/...instead of the branch ref itself. When loading from branch, just checkout with the new ref name returned byfetch().Added
apps/api/src/git-provider/workspace.test.ts.