Commit 36a945e
feat: fetch latest remote before creating worktrees (#100)
Worktrees were being created from the local default branch ref, which
could be behind the remote. Now fetches origin/<defaultBranch> before
worktree creation and uses the remote tracking ref as the start-point,
ensuring worktrees always start from the latest remote code without
mutating the main repo's working tree.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 4d41a02 commit 36a945e
1 file changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
864 | 864 | | |
865 | 865 | | |
866 | 866 | | |
| 867 | + | |
867 | 868 | | |
868 | | - | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
869 | 880 | | |
870 | 881 | | |
871 | 882 | | |
| |||
0 commit comments