MCPcopy Create free account
hub / github.com/remotemobprogramming/mob / cleanRepositoryWithSymlink

Function cleanRepositoryWithSymlink

mob_test.go:2423–2432  ·  view source on GitHub ↗
(path, gitDirectory string)

Source from the content-addressed store, hash-verified

2421}
2422
2423func cleanRepositoryWithSymlink(path, gitDirectory string) {
2424 cleanRepository(path)
2425 say.Debug("cleanrepositorywithsymlink: Delete " + gitDirectory)
2426 err := os.RemoveAll(gitDirectory)
2427 if err != nil {
2428 say.Error("Could not remove directory " + gitDirectory)
2429 say.Error(err.Error())
2430 return
2431 }
2432}
2433
2434func basename(path string) string {
2435 split := strings.Split(strings.ReplaceAll(path, "\\", "/"), "/")

Callers 1

createTestbedInFunction · 0.85

Calls 3

DebugFunction · 0.92
ErrorFunction · 0.92
cleanRepositoryFunction · 0.85

Tested by

no test coverage detected