Skip to content

Commit 5644adb

Browse files
changed how .git files are parsed
Signed-off-by: guilhermepaulozup <guilherme.paulo@zup.com.br>
1 parent a02a883 commit 5644adb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

engine.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ package engine
1717
import (
1818
"context"
1919
"io/fs"
20+
"os"
2021
"path/filepath"
2122
"strings"
2223
"sync"
@@ -177,5 +178,5 @@ func (e *Engine) isInvalidExtension(path string) bool {
177178

178179
// isFileFromGitFolder check if a file is in a .git folder
179180
func (e *Engine) isFileFromGitFolder(path string) bool {
180-
return strings.Contains(path, ".git")
181+
return strings.Contains(path, ".git"+string(os.PathSeparator))
181182
}

0 commit comments

Comments
 (0)