This commit is contained in:
zach rice committed 2019-03-26 13:57:55 -05:00
1 parent f90a00b564
commit 2b995fda44
8 files changed
+568 -495

No files matched your search

+3 -3
View File
@@ -130,7 +130,7 @@ func cloneGitlabRepo(tempDir string, p *gitlab.Project) (*RepoDescriptor, error)
return nil, fmt.Errorf("skipping %s, excluding forks", p.Name)
}
for _, re := range whiteListRepos {
for _, re := range config.WhiteList.repos {
if re.FindString(p.Name) != "" {
return nil, fmt.Errorf("skipping %s, whitelisted", p.Name)
}
@@ -140,9 +140,9 @@ func cloneGitlabRepo(tempDir string, p *gitlab.Project) (*RepoDescriptor, error)
URL: p.HTTPURLToRepo,
}
if sshAuth != nil {
if config.sshAuth != nil {
opt.URL = p.SSHURLToRepo
opt.Auth = sshAuth
opt.Auth = config.sshAuth
}
log.Infof("cloning: %s", p.Name)