We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a02a883 commit 5644adbCopy full SHA for 5644adb
engine.go
@@ -17,6 +17,7 @@ package engine
17
import (
18
"context"
19
"io/fs"
20
+ "os"
21
"path/filepath"
22
"strings"
23
"sync"
@@ -177,5 +178,5 @@ func (e *Engine) isInvalidExtension(path string) bool {
177
178
179
// isFileFromGitFolder check if a file is in a .git folder
180
func (e *Engine) isFileFromGitFolder(path string) bool {
- return strings.Contains(path, ".git")
181
+ return strings.Contains(path, ".git"+string(os.PathSeparator))
182
}
0 commit comments