1
0
mirror of https://github.com/go-task/task.git synced 2025-03-17 21:08:01 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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")
}