MCPcopy
hub / github.com/go-task/task / CleanGitCache

Function CleanGitCache

taskfile/node_git.go:51–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49}
50
51func CleanGitCache() error {
52 // Clear the in-memory locks map to prevent memory leak
53 globalGitRepoCache.mu.Lock()
54 globalGitRepoCache.locks = make(map[string]*sync.Mutex)
55 globalGitRepoCache.mu.Unlock()
56
57 cacheDir := filepath.Join(os.TempDir(), "task-git-repos")
58 return os.RemoveAll(cacheDir)
59}
60
61func NewGitNode(
62 entrypoint string,

Callers 1

ReadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…