mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 20:54:22 +01:00
fixing tests
This commit is contained in:
1 parent
d4925443c8
commit
79c3f99165
2 files changed
+16
-2
No files matched your search
@@ -489,7 +489,6 @@ func auditGitRepo(repo *RepoDescriptor) ([]Leak, error) {
|
||||
return leaks, err
|
||||
}
|
||||
err = refs.ForEach(func(ref *plumbing.Reference) error {
|
||||
fmt.Println(ref.Name())
|
||||
if ref.Name().IsTag() {
|
||||
return nil
|
||||
}
|
||||
@@ -556,7 +555,6 @@ func auditGitReference(repo *RepoDescriptor, ref *plumbing.Reference) []Leak {
|
||||
cMutex.Lock()
|
||||
commitMap[c.Hash.String()] = true
|
||||
cMutex.Unlock()
|
||||
fmt.Println(c.Hash.String())
|
||||
totalCommits = totalCommits + 1
|
||||
|
||||
fIter, err := c.Files()
|
||||
|
||||
Reference in new issue
Block a user