|
|
|
@@ -452,6 +452,8 @@ func GetContributors(repoPath string) ([]Contributor, error){ |
|
|
|
contributorsInfo := make([]Contributor, len(contributorRows)) |
|
|
|
for i := 0; i < len(contributorRows); i++ { |
|
|
|
var oneCount string = strings.Trim(contributorRows[i], " ") |
|
|
|
fmt.Println("-------",oneCount,"---------") |
|
|
|
fmt.Printf("indexOf tab:%d",strings.Index(oneCount, "\t")) |
|
|
|
number := oneCount[0:strings.Index(oneCount, "\t")] |
|
|
|
commitCnt, _ := strconv.Atoi(number) |
|
|
|
committer := oneCount[strings.Index(oneCount, "\t")+1:strings.LastIndex(oneCount, " ")] |
|
|
|
|