Skip to content

Commit

Permalink
fix: clone repo arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
aschaef19 committed Nov 29, 2021
1 parent f1f2710 commit f900f92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (eb *EarlybirdCfg) GitClone(ptr PTRGitConfig) {
if *ptr.RepoUser != "" { // use auth
eb.Config.SearchDir, err = git.CloneGitRepos(scanRepos, *ptr.RepoUser, gitPassword, *ptr.RepoBranch, (eb.Config.OutputFormat == "json"))
} else {
eb.Config.SearchDir, err = git.CloneGitRepos(scanRepos, "", "", *ptr.RepoBranch, (eb.Config.OutputFormat == "json")) //Blank no auth
eb.Config.SearchDir, err = git.CloneGitRepos(scanRepos, "", "", "", (eb.Config.OutputFormat == "json")) //Blank no auth
}
if err != nil {
log.Println("Failed to clone repository:", err)
Expand Down

0 comments on commit f900f92

Please sign in to comment.