commit 96aac08

chld  ·  2026-02-07 02:48:03 +0000 UTC
parent 9da402d
no git in find
1 files changed,  +3, -1
+3, -1
 1@@ -24,7 +24,9 @@ func FindPkg(pkg string) (string, bool) {
 2 
 3 		if d.IsDir() && strings.Contains(path, pkg) {
 4 			pkg = path
 5-			bool = true
 6+			if !strings.Contains(path, ".git/") {
 7+				bool = true
 8+			}
 9 			return fs.SkipDir // dont go deeper; we found the package
10 		}
11 		return nil