MCPcopy Create free account
hub / github.com/HashLoad/boss / refreshCopy

Function refreshCopy

core/gitWrapper/git_embedded.go:65–74  ·  view source on GitHub ↗
(dep models.Dependency)

Source from the content-addressed store, hash-verified

63}
64
65func refreshCopy(dep models.Dependency) *git.Repository {
66 dir := filepath.Join(env.GetCacheDir(), dep.GetHashName())
67 e := os.RemoveAll(dir)
68 if e == nil {
69 return CloneCacheEmbedded(dep)
70 } else {
71 msg.Err("Error on retry get refresh copy: %s", e)
72 }
73 return nil
74}
75
76func makeStorageCache(dep models.Dependency) storage.Storer {
77 paths.EnsureCacheDir(dep)

Callers 1

UpdateCacheEmbeddedFunction · 0.85

Calls 4

GetCacheDirFunction · 0.92
ErrFunction · 0.92
CloneCacheEmbeddedFunction · 0.85
GetHashNameMethod · 0.80

Tested by

no test coverage detected