From 8037eab895932c5b46da1d8a27f088cf3af3e8c5 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Sun, 13 Mar 2022 10:19:25 +1100 Subject: [PATCH] Ignore .git dirs in dev --- v2/cmd/wails/internal/commands/dev/dev.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/v2/cmd/wails/internal/commands/dev/dev.go b/v2/cmd/wails/internal/commands/dev/dev.go index d9e333c83..1d168f91d 100644 --- a/v2/cmd/wails/internal/commands/dev/dev.go +++ b/v2/cmd/wails/internal/commands/dev/dev.go @@ -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 }