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

Function writeDotGitFile

core/gitWrapper/git_native.go:66–70  ·  view source on GitHub ↗
(dep models.Dependency)

Source from the content-addressed store, hash-verified

64}
65
66func writeDotGitFile(dep models.Dependency) {
67 mask := fmt.Sprintf("gitdir: %s\n", filepath.Join(env.GetCacheDir(), dep.GetHashName()))
68 path := filepath.Join(env.GetModulesDir(), dep.GetName(), ".git")
69 _ = ioutil.WriteFile(path, []byte(mask), os.ModePerm)
70}
71
72func getWrapperFetch(dep models.Dependency) {
73 checkHasGitClient()

Callers 1

getWrapperFetchFunction · 0.85

Calls 4

GetCacheDirFunction · 0.92
GetModulesDirFunction · 0.92
GetHashNameMethod · 0.80
GetNameMethod · 0.80

Tested by

no test coverage detected