فهرست منبع

fixing commit patch order and report commit

zricethezav 7 سال پیش
والد
کامیت
45d94fa013
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      main.go

+ 1 - 1
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()))...)
 					}
 				}
 			}