mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 05:24:22 +01:00
fixing commit counts (#342)
* fixing commit counts * fixing commit to test
This commit is contained in:
1 parent
ee2d73c740
commit
10745be661
3 files changed
+31
-2
No files matched your search
@@ -220,6 +220,7 @@ type commitInspector func(c *object.Commit, repo *Repo) error
|
||||
// object will be created from the hash which will be passed into either inspectCommitPatches
|
||||
// or inspectFilesAtCommit depending on the options set.
|
||||
func inspectCommit(hash string, repo *Repo, f commitInspector) error {
|
||||
repo.Manager.IncrementCommits(1)
|
||||
h := plumbing.NewHash(hash)
|
||||
c, err := repo.CommitObject(h)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user