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