Browse Source

trim \n

tags/v1.21.7^2
avadesian 4 years ago
parent
commit
b690b888df
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      modules/git/repo.go

+ 1
- 0
modules/git/repo.go View File

@@ -447,6 +447,7 @@ func GetContributors(repoPath string) ([]Contributor, error){
if err != nil {
return nil, err
}
stdout = strings.Trim(stdout, "\n")
contributorRows := strings.Split(stdout, "\n")
if len(contributorRows) > 0 {
contributorsInfo := make([]Contributor, len(contributorRows))


Loading…
Cancel
Save