getting testing there

This commit is contained in:
zach rice committed 2019-03-29 13:02:59 -05:00
1 parent 4ea0c66bec
commit 9176896742
4 files changed
+176 -172

No files matched your search

+7
View File
@@ -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
}