Commit 94d934a
committed
Fix: Use trunkBranch parameter in SSHRuntime instead of HEAD
Previously, SSHRuntime ignored the trunkBranch parameter and always
created new branches from HEAD. This caused new branches to be created
from whatever HEAD was pointing to, rather than the specified trunk.
Changes:
- Use trunkBranch parameter instead of _trunkBranch (unused variable)
- Pass trunkBranch to 'git checkout -b' instead of hardcoded 'HEAD'
- Update comment to reflect correct behavior
This brings SSHRuntime in line with LocalRuntime, which correctly
uses the trunkBranch parameter when creating new branches via
'git worktree add -b'.
Fixes the integration test:
'creates new branch from specified trunk branch, not from default branch'1 parent 7a78c15 commit 94d934a
1 file changed
+3
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
669 | 669 | | |
670 | 670 | | |
671 | 671 | | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
| 672 | + | |
679 | 673 | | |
680 | 674 | | |
681 | 675 | | |
| |||
694 | 688 | | |
695 | 689 | | |
696 | 690 | | |
697 | | - | |
698 | | - | |
699 | | - | |
| 691 | + | |
700 | 692 | | |
701 | | - | |
| 693 | + | |
702 | 694 | | |
703 | 695 | | |
704 | 696 | | |
| |||
0 commit comments