summaryrefslogtreecommitdiff
path: root/reload.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-17 20:48:23 -0600
committerJeff Carr <[email protected]>2024-12-17 20:48:23 -0600
commitbea54091d2901d00c03541be09f33ae29e72cde1 (patch)
tree8d7e1257b88202532d59de35fd4d71a43c837544 /reload.go
parent10cc012a125e80ffb95dbc28c99d443e4427a0ba (diff)
try to fix Current branch and version
Diffstat (limited to 'reload.go')
-rw-r--r--reload.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/reload.go b/reload.go
index 0168ea8..f86001c 100644
--- a/reload.go
+++ b/reload.go
@@ -6,19 +6,25 @@ import (
"go.wit.com/log"
)
+// TODO: fix and clean this up. this is a work in progress
func (repo *Repo) Reload() error {
repo.Tags = new(GitTags)
repo.reloadGitTags()
repo.GoDeps = new(GoDeps)
+ if repo.GoInfo == nil {
+ repo.GoInfo = new(GoInfo)
+ }
repo.ParseGoSum()
repo.setLastTag()
repo.setCurrentBranchName()
+ repo.setCurrentBranchVersion()
+
repo.setRepoType()
// everything has been checked, now save the mtime's
- repo.RepoChanged()
+ repo.updateMtimes()
return nil
}