1
0
mirror of https://github.com/go-task/task.git synced 2025-07-15 01:35:00 +02:00

Ignore .hg for Mercurial, too (#1098)

This commit is contained in:
André Klitzing
2023-03-31 02:25:08 +02:00
committed by GitHub
parent a80da8b65c
commit bdf7fb0858

View File

@ -175,5 +175,6 @@ func (e *Executor) registerWatchedFiles(w *watcher.Watcher, calls ...taskfile.Ca
}
func shouldIgnoreFile(path string) bool {
return strings.Contains(path, "/.git") || strings.Contains(path, "/.task") || strings.Contains(path, "/node_modules")
return strings.Contains(path, "/.git") || strings.Contains(path, "/.hg") ||
strings.Contains(path, "/.task") || strings.Contains(path, "/node_modules")
}