diff options
| author | Jeff Carr <[email protected]> | 2024-12-17 20:48:23 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-17 20:48:23 -0600 |
| commit | bea54091d2901d00c03541be09f33ae29e72cde1 (patch) | |
| tree | 8d7e1257b88202532d59de35fd4d71a43c837544 /reload.go | |
| parent | 10cc012a125e80ffb95dbc28c99d443e4427a0ba (diff) | |
try to fix Current branch and version
Diffstat (limited to 'reload.go')
| -rw-r--r-- | reload.go | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 } |
