diff --git a/modules/git/repo.go b/modules/git/repo.go index 0d13d19c3..b68623751 100644 --- a/modules/git/repo.go +++ b/modules/git/repo.go @@ -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, " ")]