mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 13:34:23 +01:00
fixing commit counts (#342)
* fixing commit counts * fixing commit to test
This commit is contained in:
1 parent
ee2d73c740
commit
10745be661
3 files changed
+31
-2
No files matched your search
+4
-2
@@ -257,8 +257,7 @@ func (repo *Repo) Audit() error {
|
||||
semaphore := make(chan bool, howManyThreads(repo.Manager.Opts.Threads))
|
||||
wg := sync.WaitGroup{}
|
||||
err = cIter.ForEach(func(c *object.Commit) error {
|
||||
if c == nil || c.Hash.String() == repo.Manager.Opts.CommitTo ||
|
||||
repo.timeoutReached() || repo.depthReached(cc) {
|
||||
if c == nil || repo.timeoutReached() || repo.depthReached(cc) {
|
||||
return storer.ErrStop
|
||||
}
|
||||
|
||||
@@ -306,6 +305,9 @@ func (repo *Repo) Audit() error {
|
||||
|
||||
return nil
|
||||
})
|
||||
if c.Hash.String() == repo.Manager.Opts.CommitTo {
|
||||
return storer.ErrStop
|
||||
}
|
||||
return nil
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user