(dir string, isBare bool)
| 101 | } |
| 102 | |
| 103 | func createRepository(dir string, isBare bool) string { |
| 104 | var cmd *exec.Cmd |
| 105 | if isBare { |
| 106 | cmd = exec.Command("git", "init", "--bare", dir) |
| 107 | } else { |
| 108 | cmd = exec.Command("git", "init", dir) |
| 109 | } |
| 110 | err := cmd.Run() |
| 111 | CheckIfError(err) |
| 112 | |
| 113 | return dir |
| 114 | } |
| 115 | |
| 116 | func createRepositoryWithRemote(local, remote string) string { |
| 117 | createRepository(local, false) |
no test coverage detected