()
| 49 | } |
| 50 | |
| 51 | func 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 | |
| 61 | func NewGitNode( |
| 62 | entrypoint string, |
no outgoing calls
no test coverage detected
searching dependent graphs…