diff options
| author | Jeff Carr <[email protected]> | 2025-10-21 04:49:06 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-21 04:49:06 -0500 |
| commit | c9fae2681ba33612fca2418523964cfc7b92cac1 (patch) | |
| tree | 471ed9830399c5f36210f3ceff6c0b90c41d42bd /scanRepoDir.go | |
| parent | 69b5038c58e6a8487f22aeaf28eddec5c785c283 (diff) | |
starting to limp back to working
Diffstat (limited to 'scanRepoDir.go')
| -rw-r--r-- | scanRepoDir.go | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/scanRepoDir.go b/scanRepoDir.go index 81149aa..e09af30 100644 --- a/scanRepoDir.go +++ b/scanRepoDir.go @@ -37,8 +37,21 @@ func (f *Forge) checkNamespace(fullpath string) (*gitpb.Repo, error) { return repo, err } -func (f *Forge) ScanRepoDir() error { - dirs, err := gitDirectoriesNew(config.Get("ReposDir")) +func (f *Forge) RescanRepos() error { + log.Info("RescanRepos() running") + gopath := config.Get("gopath") + f.ScanRepoDir(gopath) + // f.SaveRepos() + f.Repos.SaveVerbose() + return errors.New("ScanReposByMode() not implemented yet") +} + +// scans for .git/ directories +func (f *Forge) ScanRepoDir(path string) error { + if path == "" { + return errors.New("ScanRepoDir() got sent blank dir") + } + dirs, err := gitDirectoriesNew(path) if err != nil { return err } |
