quick patch for cfor enumeration (#3155)

Co-authored-by: Joe Leon <joe.leon@trufflesec.com>
This commit is contained in:
joeleonjr 2024-08-02 11:12:43 -04:00 committed by GitHub
parent fe9ac9d0bf
commit f927076483
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -640,6 +640,12 @@ func (s *Source) EnumerateAndScanAllObjects(ctx context.Context, chunksChan chan
// Guess all possible commit hashes
processCommits(ctx, possibleCommits, owner, repoName, folderPath)
// Read in the new commits
validHiddenCommits, err = readCommitsFromDisk(validHiddenCommit, folderPath)
if err != nil {
return fmt.Errorf("failed to read valid hidden commits from disk: %w", err)
}
// Download commit hashes and checkout into branches (only way scanner will pick them up)
err = downloadPatches(validHiddenCommits, path)
if err != nil {