Skip to content

Commit

Permalink
Merge pull request #40 from aschaef19/branch-scanning
Browse files Browse the repository at this point in the history
fix: clone repo arguments
  • Loading branch information
aschaef19 authored Nov 29, 2021
2 parents 163f259 + f900f92 commit d06fef0
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 d06fef0

Please sign in to comment.