mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 15:14:38 +00:00
Show clone path for git repos (#823)
This commit is contained in:
parent
db42bcf2a2
commit
752c848640
1 changed files with 2 additions and 1 deletions
|
@ -252,6 +252,7 @@ func CloneRepo(userInfo *url.Userinfo, gitUrl string, args ...string) (clonePath
|
|||
err = errors.WrapPrefix(err, "could not open cloned repo", 0)
|
||||
return
|
||||
}
|
||||
log.WithField("clone_path", clonePath).WithField("repo", gitUrl).Debug("cloned repo")
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -300,7 +301,7 @@ func (s *Git) ScanCommits(ctx context.Context, repo *git.Repository, path string
|
|||
|
||||
var depth int64
|
||||
var reachedBase = false
|
||||
log.Debugf("Scanning repo")
|
||||
log.WithField("repo", urlMetadata).Debugf("Scanning repo")
|
||||
for commit := range commitChan {
|
||||
log.Debugf("Scanning commit %s", commit.Hash)
|
||||
if scanOptions.MaxDepth > 0 && depth >= scanOptions.MaxDepth {
|
||||
|
|
Loading…
Reference in a new issue