From 48a25149548132c234227731d5c155ef48b0c215 Mon Sep 17 00:00:00 2001 From: Uri Date: Thu, 16 May 2019 16:48:12 +0300 Subject: [PATCH] Minimize git access upon changed path --- src/gitClone.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gitClone.ts b/src/gitClone.ts index f42c1071b..6c29dba42 100644 --- a/src/gitClone.ts +++ b/src/gitClone.ts @@ -63,7 +63,7 @@ export class GitClone extends Widget { * Git repo and disables/enables the clone button accordingly. */ disableIfInGitDirectory(): void { - this.gitApi.allHistory( + this.gitApi.showTopLevel( this.fileBrowser.model.path ).then(response => { if (response.code == 0) {