diff options
Diffstat (limited to 'scanRepoDir.go')
| -rw-r--r-- | scanRepoDir.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/scanRepoDir.go b/scanRepoDir.go index 537acee..e8a85ef 100644 --- a/scanRepoDir.go +++ b/scanRepoDir.go @@ -40,12 +40,14 @@ func (f *Forge) checkNamespace(fullpath string) (*gitpb.Repo, error) { func (f *Forge) RescanRepos() error { gopath := env.Get("gopath") + fullpath := env.FullPath(gopath) if env.Verbose() { - log.Info("RescanRepos() running in", gopath) + log.Info("RescanRepos() running in", fullpath) } - f.scanRepoDir(gopath) - f.Save() - return errors.New("ScanReposByMode() not implemented yet") + f.scanRepoDir(fullpath) + err := f.Save() + // return errors.New("ScanReposByMode() not implemented yet") + return err } // scans for .git/ directories |
