(repo string, data string)
| 628 | } |
| 629 | |
| 630 | func copyAddData(repo string, data string) error { |
| 631 | err := copyutil.CopyDir(data, repo) |
| 632 | if err != nil { |
| 633 | return err |
| 634 | } |
| 635 | |
| 636 | cmd := exec.Command("git", "add", ".") |
| 637 | cmd.Dir = repo |
| 638 | _, err = cmd.CombinedOutput() |
| 639 | if err != nil { |
| 640 | return err |
| 641 | } |
| 642 | |
| 643 | return nil |
| 644 | } |
| 645 | |
| 646 | func commit(repo, message string) error { |
| 647 | cmd := exec.Command("git", "commit", "-m", message) |
no test coverage detected