Skip to content

Commit

Permalink
Use Expected instead of Current
Browse files Browse the repository at this point in the history
@another-rex identified this solution to go-git/go-git#373
  • Loading branch information
andrewpollock committed Oct 26, 2023
1 parent f5964e0 commit f9146be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/osvscanner/osvscanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@ func scanGit(r reporter.Reporter, query *osv.BatchedQuery, repoDir string) error
}

for _, s := range submodules {
r.PrintText(fmt.Sprintf("Scanning submodule %s at commit %s\n", s.Path, s.Current.String()))
err = scanGitCommit(query, s.Current.String(), repoDir)
r.PrintText(fmt.Sprintf("Scanning submodule %s at commit %s\n", s.Path, s.Expected.String()))
err = scanGitCommit(query, s.Expected.String(), repoDir)
if err != nil {
return err
}
Expand Down

0 comments on commit f9146be

Please sign in to comment.