()
| 3776 | } |
| 3777 | |
| 3778 | func getConflictedFiles() []string { |
| 3779 | cmd := exec.Command("git", "diff", "--name-only", "--diff-filter=U") |
| 3780 | output, err := cmd.Output() |
| 3781 | if err != nil { |
| 3782 | return nil |
| 3783 | } |
| 3784 | |
| 3785 | var files []string |
| 3786 | lines := strings.Split(strings.TrimSpace(string(output)), "\n") |
| 3787 | for _, line := range lines { |
| 3788 | if line != "" { |
| 3789 | files = append(files, line) |
| 3790 | } |
| 3791 | } |
| 3792 | return files |
| 3793 | } |
| 3794 | |
| 3795 | func gitCloneTo(ctx *snap.Context, cloneURL, targetDir string) error { |
| 3796 | cmd := exec.Command("git", "clone", cloneURL, targetDir) |
no outgoing calls
no test coverage detected