Compare commits

...
3 Commits
Author SHA1 Message Date
Zachary Rice 160015b872 Merge pull request #111 from zricethezav/fix-wl-commit
rm commit count log
2018-10-10 09:50:28 -05:00
zach rice abdf2c47f0 cl update 2018-10-10 09:43:01 -05:00
zach rice 8536f16ceb rm commit count log 2018-10-10 09:41:49 -05:00
2 changed files with 6 additions and 6 deletions

No files matched your search

+4
View File
@@ -1,6 +1,10 @@
CHANGELOG
=========
1.11.1
----
- fix commit whitelist logic
1.11.0
-----
- Commit depth option
+2 -6
View File
@@ -128,7 +128,7 @@ type gitDiff struct {
}
const defaultGithubURL = "https://api.github.com/"
const version = "1.11.0"
const version = "1.11.1"
const errExit = 2
const leakExit = 1
const defaultConfig = `
@@ -462,6 +462,7 @@ func auditGitReference(repo *RepoDescriptor, ref *plumbing.Reference) []Leak {
commitCount = commitCount + 1
totalCommits = totalCommits + 1
if whiteListCommits[c.Hash.String()] {
prevCommit = c
log.Infof("skipping commit: %s\n", c.Hash.String())
return nil
}
@@ -552,11 +553,6 @@ func auditGitReference(repo *RepoDescriptor, ref *plumbing.Reference) []Leak {
return nil
})
commitWg.Wait()
if opts.Verbose {
log.Infof("%d commits inspected for %s", commitCount, repo.name)
}
return leaks
}