Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #26 from pinpt/DINT-188
Browse files Browse the repository at this point in the history
DINT-188 Fixed IncrementalIgnoreBranchesOlderThan date
  • Loading branch information
xzandrew authored Mar 9, 2020
2 parents 33ce1d7 + cf07ef6 commit ee1b00c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ripsrc/code.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (s *Ripsrc) CodeByCommit(ctx context.Context, res chan CommitCode) error {

deadline := s.opts.IncrementalIgnoreBranchesOlderThan
if deadline.IsZero() {
deadline = time.Now().Add(3 * 30 * 24 * time.Hour)
deadline = time.Now().Add(-3 * 30 * 24 * time.Hour)
}
for _, b := range allBranches {
if b.CommitCommitterTime.After(deadline) {
Expand Down

0 comments on commit ee1b00c

Please sign in to comment.