updating version

This commit is contained in:
zach rice committed 2018-10-24 09:58:39 -05:00
1 parent 16765c19cf
commit 64e7afea98
1 file changed
+2 -7
+2 -7
View File
@@ -81,7 +81,6 @@ type Options struct {
OwnerPath string `long:"owner-path" description:"Path to owner directory (repos discovered)"` OwnerPath string `long:"owner-path" description:"Path to owner directory (repos discovered)"`
// Process options // Process options
MaxGoRoutines int `long:"max-go" description:"Maximum number of concurrent go-routines gitleaks spawns"`
Disk bool `long:"disk" description:"Clones repo(s) to disk"` Disk bool `long:"disk" description:"Clones repo(s) to disk"`
AuditAllRefs bool `long:"all-refs" description:"run audit on all refs"` AuditAllRefs bool `long:"all-refs" description:"run audit on all refs"`
SingleSearch string `long:"single-search" description:"single regular expression to search for"` SingleSearch string `long:"single-search" description:"single regular expression to search for"`
@@ -136,7 +135,7 @@ type entropyRange struct {
} }
const defaultGithubURL = "https://api.github.com/" const defaultGithubURL = "https://api.github.com/"
const version = "1.15.0" const version = "1.16.0"
const errExit = 2 const errExit = 2
const leakExit = 1 const leakExit = 1
const defaultConfig = ` const defaultConfig = `
@@ -472,8 +471,7 @@ func auditGitRepo(repo *RepoDescriptor) ([]Leak, error) {
} }
// auditGitReference beings the audit for a git reference. This function will // auditGitReference beings the audit for a git reference. This function will
// traverse the git reference and audit each line of each diff. Set maximum concurrency with // traverse the git reference and audit each line of each diff.
// the --max-go option (default is set to the number of cores on your cpu).
func auditGitReference(repo *RepoDescriptor, ref *plumbing.Reference) []Leak { func auditGitReference(repo *RepoDescriptor, ref *plumbing.Reference) []Leak {
var ( var (
err error err error
@@ -482,9 +480,6 @@ func auditGitReference(repo *RepoDescriptor, ref *plumbing.Reference) []Leak {
commitCount int commitCount int
) )
repoName = repo.name repoName = repo.name
if opts.MaxGoRoutines != 0 {
maxGo = opts.MaxGoRoutines
}
cIter, err := repo.repository.Log(&git.LogOptions{From: ref.Hash()}) cIter, err := repo.repository.Log(&git.LogOptions{From: ref.Hash()})
if err != nil { if err != nil {