mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 13:14:22 +01:00
repoDescriptor->repoInfo
This commit is contained in:
1 parent
e79ffc6ae8
commit
c2143c5843
9 files changed
+23
-28
No files matched your search
+3
-3
@@ -154,10 +154,10 @@ func addLeak(leaks []Leak, line string, offender string, leakType string, diff g
|
||||
|
||||
// discoverRepos walks all the children of `path`. If a child directory
|
||||
// contain a .git subdirectory then that repo will be added to the list of repos returned
|
||||
func discoverRepos(ownerPath string) ([]*RepoDescriptor, error) {
|
||||
func discoverRepos(ownerPath string) ([]*RepoInfo, error) {
|
||||
var (
|
||||
err error
|
||||
repoDs []*RepoDescriptor
|
||||
repoDs []*RepoInfo
|
||||
)
|
||||
files, err := ioutil.ReadDir(ownerPath)
|
||||
if err != nil {
|
||||
@@ -166,7 +166,7 @@ func discoverRepos(ownerPath string) ([]*RepoDescriptor, error) {
|
||||
for _, f := range files {
|
||||
repoPath := path.Join(ownerPath, f.Name())
|
||||
if f.IsDir() && containsGit(repoPath) {
|
||||
repoDs = append(repoDs, &RepoDescriptor{
|
||||
repoDs = append(repoDs, &RepoInfo{
|
||||
name: f.Name(),
|
||||
path: repoPath,
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user