summaryrefslogtreecommitdiff
path: root/scanRepoDir.go
diff options
context:
space:
mode:
Diffstat (limited to 'scanRepoDir.go')
-rw-r--r--scanRepoDir.go27
1 files changed, 0 insertions, 27 deletions
diff --git a/scanRepoDir.go b/scanRepoDir.go
index 4597686..c138353 100644
--- a/scanRepoDir.go
+++ b/scanRepoDir.go
@@ -23,33 +23,6 @@ func (f *Forge) Reload() map[string]*RillStats {
return f.RillRepos(reloadCheck)
}
-/*
-func (f *Forge) TestScan() error {
- f.Repos = gitpb.NewRepos()
- dirs, err := gitDirectoriesNew(f.Config.ReposDir)
- if err != nil {
- return err
- }
- for i, fullpath := range dirs {
- repo, err := gitpb.NewRepo(fullpath)
- if err != nil {
- log.Info("ReAdd() error", fullpath, err)
- }
- log.Info(i, "worked", repo.FullPath)
- repo = f.Repos.Append(repo)
- f.VerifyBranchNames(repo)
- if f.Config.IsReadOnly(repo.GetGoPath()) {
- repo.ReadOnly = true
- }
- repo.ReloadCheck()
- if i > 5 {
- break
- }
- }
- return nil
-}
-*/
-
func (f *Forge) checkNamespace(fullpath string) (*gitpb.Repo, error) {
if repo := f.Repos.FindByFullPath(fullpath); repo != nil {
return nil, nil