From 45d94fa013fa659015aad2204346ee40160e7fbc Mon Sep 17 00:00:00 2001 From: zricethezav Date: Sat, 21 Jul 2018 14:00:33 -0500 Subject: [PATCH] fixing commit patch order and report commit --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index e3520aa8..6b3cf86d 100644 --- a/main.go +++ b/main.go @@ -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()))...) } } }