Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 937a3be

Browse files
committed
Do not initialize a Git repository when using ripgrep
1 parent d3372b6 commit 937a3be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/load-paths-handler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class PathLoader {
2121
this.paths = []
2222
this.inodes = new Set()
2323
this.repo = null
24-
if (ignoreVcsIgnores) {
24+
if (ignoreVcsIgnores && !this.useRipGrep) {
2525
const repo = GitRepository.open(this.rootPath, {refreshOnWindowFocus: false})
2626
if ((repo && repo.relativize(path.join(this.rootPath, 'test'))) === 'test') {
2727
this.repo = repo

0 commit comments

Comments
 (0)