Skip to content

Commit a8ce442

Browse files
committed
Fixes #3582 clears worktree cache on HEAD changes
1 parent 2219c30 commit a8ce442

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

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

77
## [Unreleased]
88

9+
### Fixed
10+
11+
- Fixes [#3582](https://github.com/gitkraken/vscode-gitlens/issues/3582) - "Delete Branch" option is sometimes unexpectedly missing
12+
913
## [15.5.0] - 2024-09-12
1014

1115
### Added

src/env/node/git/localGitProvider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ export class LocalGitProvider implements GitProvider, Disposable {
321321
if (e.changed(RepositoryChange.Heads, RepositoryChange.Remotes, RepositoryChangeComparisonMode.Any)) {
322322
this._branchesCache.delete(repo.path);
323323
this._contributorsCache.delete(repo.path);
324+
this._worktreesCache.delete(repo.path);
324325
}
325326

326327
if (e.changed(RepositoryChange.Remotes, RepositoryChange.RemoteProviders, RepositoryChangeComparisonMode.Any)) {

0 commit comments

Comments
 (0)