(path, gitDirectory string)
| 2421 | } |
| 2422 | |
| 2423 | func 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 | |
| 2434 | func basename(path string) string { |
| 2435 | split := strings.Split(strings.ReplaceAll(path, "\\", "/"), "/") |
no test coverage detected