Browse Source

log for debug

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

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

@@ -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, " ")]


Loading…
Cancel
Save