Ignore .git dirs in dev

This commit is contained in:
Lea Anthony
2022-03-13 10:19:25 +11:00
parent 09756b5150
commit 8037eab895
@@ -418,6 +418,10 @@ func initialiseWatcher(cwd string, logFatal func(string, ...interface{})) (*fsno
return
}
// Ignore build directory
if strings.Contains(dir, ".git") {
return
}
// Ignore build directory
if strings.HasPrefix(dir, filepath.Join(cwd, "build")) {
return
}