diff --git a/src/git/models/repository.ts b/src/git/models/repository.ts index 6d7441b..c9292ab 100644 --- a/src/git/models/repository.ts +++ b/src/git/models/repository.ts @@ -138,7 +138,7 @@ export class Repository extends Disposable { private onFileSystemChanged(uri: Uri) { // Ignore .git changes - if (/\.git/.test(uri.fsPath)) return; + if (/\.git(?:\/|\\|$)/.test(uri.fsPath)) return; this.fireFileSystemChange(uri); }