mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 04:04:25 +01:00
fixing commit patch order and report commit
This commit is contained in:
1 parent
b4e69ecd37
commit
45d94fa013
1 file changed
+1
-1
@@ -368,7 +368,7 @@ func auditRef(r *git.Repository, ref *plumbing.Reference, commitWg *sync.WaitGro
|
||||
for _, chunk := range chunks {
|
||||
if chunk.Type() == 1 || chunk.Type() == 2 {
|
||||
// only check if adding or removing
|
||||
leaks = append(leaks, checkDiff(chunk.Content(), c, filePath, string(ref.Name()))...)
|
||||
leaks = append(leaks, checkDiff(chunk.Content(), prevCommit, filePath, string(ref.Name()))...)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user