Skip to content

Commit

Permalink
Minimize git access upon changed path
Browse files Browse the repository at this point in the history
  • Loading branch information
Uri committed May 16, 2019
1 parent 1696fa3 commit 48a2514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gitClone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 48a2514

Please sign in to comment.