Skip to content

Commit af5f8d9

Browse files
committed
Fixes worktree file watching on delete
1 parent b31b09c commit af5f8d9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
2020

2121
- Fixes [#3592](https://github.com/gitkraken/vscode-gitlens/issues/3592) - Connecting to an integration via Remotes view (but likely others) doesn't work
2222
- Fixes an issue where virtual repositories for GitHub PRs from forks wouldn't load properly
23+
- Fixes an issue where deleting a worktree would not always remove the worktree from the view
2324

2425
## [15.5.1] - 2024-09-16
2526

src/git/models/repository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const millisecondsPerDay = 24 * 60 * 60 * 1000;
5757

5858
const dotGitWatcherGlobFiles = 'index,HEAD,*_HEAD,MERGE_*,rebase-merge/**,sequencer/**';
5959
const dotGitWatcherGlobWorktreeFiles =
60-
'worktrees/**/index,worktrees/**/HEAD,worktrees/**/*_HEAD,worktrees/**/MERGE_*,worktrees/**/rebase-merge/**,worktrees/**/sequencer/**';
60+
'worktrees/*,worktrees/**/index,worktrees/**/HEAD,worktrees/**/*_HEAD,worktrees/**/MERGE_*,worktrees/**/rebase-merge/**,worktrees/**/sequencer/**';
6161

6262
const dotGitWatcherGlobRoot = `{${dotGitWatcherGlobFiles}}`;
6363
const dotGitWatcherGlobCommon = `{config,refs/**,${dotGitWatcherGlobWorktreeFiles}}`;

0 commit comments

Comments
 (0)