From 0363bcf6c6f3f188d9489ea3053828acc01e9fd2 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Tue, 20 Mar 2018 02:28:55 -0400 Subject: [PATCH] Fixes issue with paths that contain `.git` --- src/git/models/repository.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }