summaryrefslogtreecommitdiff
path: root/update.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-07 22:28:50 -0600
committerJeff Carr <[email protected]>2025-01-07 22:28:50 -0600
commita15d447fbd49c2ef7732abc77c973a2469fdac99 (patch)
treecfa612c091e1d89f1714f290d1f9bbc42bc4827e /update.go
parentfcb74ce2e8ef9c62a30288ec028a69f275e2f8b3 (diff)
more removal of old codev0.22.32
Diffstat (limited to 'update.go')
-rw-r--r--update.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/update.go b/update.go
index a30b35c..e17e12c 100644
--- a/update.go
+++ b/update.go
@@ -17,7 +17,8 @@ func (rs *RepoStatus) Update() {
// store the current checked out branch name and version
rs.checkCurrentBranchName()
- rs.checkCurrentBranchVersion()
+ out := rs.pb.GetCurrentVersion()
+ rs.currentVersion.SetValue(out)
// read in the tags
rs.populateTags()
@@ -25,8 +26,9 @@ func (rs *RepoStatus) Update() {
// record if the repo is dirty
pb.CheckDirty()
- // store the last tag version
- rs.setLastTagVersion()
+ // display the last tag version
+ name := rs.pb.GetLastTagVersion()
+ rs.lasttag.SetText(name)
// store the master branch version
ver := pb.GetMasterVersion()