Skip to content
This repository was archived by the owner on May 24, 2024. It is now read-only.

Commit 6b60446

Browse files
change pagging period (#88)
Signed-off-by: Ayman <[email protected]> Co-authored-by: Ayman <[email protected]>
1 parent 489be11 commit 6b60446

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

cmd/git/git.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3133,9 +3133,8 @@ func (j *DSGit) SyncV2(ctx *shared.Ctx) (err error) {
31333133
return
31343134
}
31353135

3136-
counter := 0
31373136
for from.Before(headCommit.Author.When) {
3138-
until := from.Add(24 * time.Hour * 365)
3137+
until := from.Add(24 * time.Hour * 185)
31393138
comms, er := getRepoCommits(r, from, until)
31403139
if er != nil {
31413140
err = er
@@ -3194,10 +3193,6 @@ func (j *DSGit) SyncV2(ctx *shared.Ctx) (err error) {
31943193
if err != nil {
31953194
return
31963195
}
3197-
counter++
3198-
if counter%100 == 0 && counter != 0 {
3199-
fmt.Println("processed ", counter, " commits")
3200-
}
32013196
}
32023197

32033198
}

0 commit comments

Comments
 (0)