(path string)
| 2368 | } |
| 2369 | |
| 2370 | func createRemoteRepository(path string) { |
| 2371 | branch := "master" // fixed to master for now |
| 2372 | say.Debug("createremoterepository: Creating remote repository " + path) |
| 2373 | err := os.MkdirAll(path, 0755) |
| 2374 | if err != nil { |
| 2375 | say.Error("Could not create directory " + path) |
| 2376 | say.Error(err.Error()) |
| 2377 | return |
| 2378 | } |
| 2379 | workingDir = path |
| 2380 | say.Debug("before git init") |
| 2381 | git("--bare", "init") |
| 2382 | say.Debug("before symbolic-ref") |
| 2383 | git("symbolic-ref", "HEAD", "refs/heads/"+branch) |
| 2384 | // see bug #346 changes the output of git status --short |
| 2385 | git("config", "--local", "status.branch", "true") |
| 2386 | say.Debug("finished") |
| 2387 | } |
| 2388 | |
| 2389 | func cloneRepository(path, remoteDirectory string) { |
| 2390 | say.Debug("clonerepository: Cloning remote " + remoteDirectory + " to " + path) |
no test coverage detected