Files
kandev/apps/backend/internal/worktree
José Almeida 135b63e067 fix(backend): prevent worktree branches from inheriting upstream tracking (#570)
When creating a worktree from a remote-tracking ref (e.g. origin/feature/foo),
git automatically sets the new branch's upstream to that ref. This caused new
task branches to incorrectly track the original remote branch instead of
starting with no upstream.

Add -c branch.autoSetupMerge=false to gitAddWorktree and
gitAddWorktreeWithGitCrypt. The explicit CheckoutBranch flow (PR reviews)
is unaffected — it sets upstream via setUpstreamIfExists after creation.
2026-04-09 22:48:26 +01:00
..