summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/main.go b/main.go
index c7db9d7..7606bd5 100644
--- a/main.go
+++ b/main.go
@@ -43,6 +43,15 @@ func getVersion(repo *gitpb.Repo, name string) string {
return strings.TrimSpace(output)
}
+func reloadCheck(repo *gitpb.Repo) error {
+ if err := repo.ReloadCheck(); err != nil {
+ log.Info("need to reload", repo.FullPath)
+ configSave = true
+ return err
+ }
+ return nil
+}
+
func main() {
me = new(mainType)
prep.Bash(ARGNAME, argv.DoAutoComplete) // this line should be: prep.Bash(argv)
@@ -50,6 +59,7 @@ func main() {
me.pp = arg.MustParse(&argv)
me.forge = forgepb.Init()
+ me.forge.RillRepos(reloadCheck)
me.forge.ScanGoSrc()
// initialize patches