Repository navigation
Commit c20f53c
fix(server): removing a worktree keeps files hidden by showUntrackedFiles=no
Git refuses to remove a worktree that has untracked files unless forced,
but that check honors status.showUntrackedFiles. With it set to no, git
status reports new files as clean and `git worktree remove` deletes them,
which automatic cleanup does without --force. removeWorktree now runs Git
with status.showUntrackedFiles=normal so its own check sees them.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>1 parent fe417df commit c20f53c
2 files changed
Lines changed: 33 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1078 | 1078 | | |
1079 | 1079 | | |
1080 | 1080 | | |
1081 | | - | |
| 1081 | + | |
1082 | 1082 | | |
1083 | 1083 | | |
1084 | 1084 | | |
| |||
2883 | 2883 | | |
2884 | 2884 | | |
2885 | 2885 | | |
| 2886 | + | |
| 2887 | + | |
| 2888 | + | |
| 2889 | + | |
| 2890 | + | |
| 2891 | + | |
| 2892 | + | |
| 2893 | + | |
| 2894 | + | |
| 2895 | + | |
| 2896 | + | |
| 2897 | + | |
| 2898 | + | |
| 2899 | + | |
| 2900 | + | |
| 2901 | + | |
| 2902 | + | |
| 2903 | + | |
| 2904 | + | |
| 2905 | + | |
| 2906 | + | |
| 2907 | + | |
| 2908 | + | |
| 2909 | + | |
| 2910 | + | |
| 2911 | + | |
| 2912 | + | |
| 2913 | + | |
2886 | 2914 | | |
2887 | 2915 | | |
2888 | 2916 | | |
| |||
2891 | 2919 | | |
2892 | 2920 | | |
2893 | 2921 | | |
2894 | | - | |
2895 | | - | |
| 2922 | + | |
2896 | 2923 | | |
2897 | 2924 | | |
2898 | 2925 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3649 | 3649 | | |
3650 | 3650 | | |
3651 | 3651 | | |
3652 | | - | |
| 3652 | + | |
| 3653 | + | |
| 3654 | + | |
3653 | 3655 | | |
3654 | 3656 | | |
3655 | 3657 | | |
| |||
0 commit comments