mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 21:24:21 +01:00
getting testing there
This commit is contained in:
1 parent
4ea0c66bec
commit
9176896742
4 files changed
+176
-172
No files matched your search
@@ -187,6 +187,13 @@ func (repoInfo *RepoInfo) audit() ([]Leak, error) {
|
||||
// commits w/o parent (root of git the git ref) or option for single commit is not empty str
|
||||
if len(c.ParentHashes) == 0 || opts.Commit == c.Hash.String() {
|
||||
leaks = append(repoInfo.auditSingleCommit(c, mutex), leaks...)
|
||||
if opts.Commit == c.Hash.String() {
|
||||
return storer.ErrStop
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
if opts.Commit != "" {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user