MCPcopy Create free account
hub / github.com/conforma/cli / Close

Method Close

internal/tracker/git.go:49–65  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

47}
48
49func (g gitTracker) Close(ctx context.Context) {
50 fs := utils.FS(ctx)
51
52 g.repositories.Range(func(_, val any) bool {
53 r, err := val.(func() (*git.Repository, error))()
54 if err != nil {
55 return true
56 }
57
58 bfs := r.Storer.(*filesystem.Storage).Filesystem()
59
60 // ignore error
61 _ = fs.RemoveAll(bfs.Root())
62
63 return true
64 })
65}
66
67func clone(ctx context.Context, repository string) (*git.Repository, error) {
68 fs := utils.FS(ctx)

Callers

nothing calls this directly

Calls 1

FSFunction · 0.92

Tested by

no test coverage detected