mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04:22 +01:00
gotta log the reponame on cloned repos
This commit is contained in:
1 parent
ad2a64c82b
commit
f8c054b879
3 files changed
+2
-5
No files matched your search
@@ -18,6 +18,7 @@ import (
|
||||
"io"
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"sync"
|
||||
"time"
|
||||
)
|
||||
@@ -71,6 +72,7 @@ func (repo *Repo) Clone(cloneOption *git.CloneOptions) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
repo.Name = filepath.Base(repo.Manager.Opts.Repo)
|
||||
repo.Repository = repository
|
||||
repo.Manager.RecordTime(manager.CloneTime(howLong(start)))
|
||||
|
||||
|
||||
Reference in new issue
Block a user