Repository navigation
Commit 344b395
fix(server): clean up the same worktree path Git removed
Git also accepts a worktree's short name and matches it against registered
worktrees, while the leftover cleanup resolved the argument against cwd.
With a worktree named `short` elsewhere and an unrelated `short` folder in
the repository, Git removed the worktree and cleanup then unlinked the
unrelated folder's links. removeWorktree now resolves the path once and
gives Git and the cleanup the same absolute path.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>1 parent 77ff621 commit 344b395
2 files changed
Lines changed: 36 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2921 | 2921 | | |
2922 | 2922 | | |
2923 | 2923 | | |
| 2924 | + | |
| 2925 | + | |
| 2926 | + | |
| 2927 | + | |
| 2928 | + | |
| 2929 | + | |
| 2930 | + | |
| 2931 | + | |
| 2932 | + | |
| 2933 | + | |
| 2934 | + | |
| 2935 | + | |
| 2936 | + | |
| 2937 | + | |
| 2938 | + | |
| 2939 | + | |
| 2940 | + | |
| 2941 | + | |
| 2942 | + | |
| 2943 | + | |
| 2944 | + | |
| 2945 | + | |
| 2946 | + | |
| 2947 | + | |
| 2948 | + | |
| 2949 | + | |
| 2950 | + | |
2924 | 2951 | | |
2925 | 2952 | | |
2926 | 2953 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3672 | 3672 | | |
3673 | 3673 | | |
3674 | 3674 | | |
| 3675 | + | |
| 3676 | + | |
| 3677 | + | |
| 3678 | + | |
3675 | 3679 | | |
3676 | 3680 | | |
3677 | 3681 | | |
3678 | 3682 | | |
3679 | | - | |
| 3683 | + | |
3680 | 3684 | | |
3681 | 3685 | | |
3682 | 3686 | | |
| |||
3696 | 3700 | | |
3697 | 3701 | | |
3698 | 3702 | | |
3699 | | - | |
3700 | | - | |
3701 | | - | |
| 3703 | + | |
| 3704 | + | |
3702 | 3705 | | |
3703 | 3706 | | |
3704 | | - | |
| 3707 | + | |
3705 | 3708 | | |
3706 | 3709 | | |
3707 | 3710 | | |
3708 | 3711 | | |
3709 | 3712 | | |
3710 | 3713 | | |
3711 | 3714 | | |
3712 | | - | |
| 3715 | + | |
3713 | 3716 | | |
3714 | 3717 | | |
3715 | 3718 | | |
| |||
0 commit comments