From 1c02e4d05fa5fb20ba3d38710da141f7d82d701f Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 10 Jan 2024 18:18:01 -0600 Subject: things are now almost automatic Signed-off-by: Jeff Carr --- git.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'git.go') diff --git a/git.go b/git.go index 477e956..ad549e0 100644 --- a/git.go +++ b/git.go @@ -27,6 +27,7 @@ func (rs *RepoStatus) getLastTagVersion() string { // out = run(r.path, "git", "describe --tags c871d5ecf051a7dc4e3a77157cdbc0a457eb9ae1") out = run(rs.repopath, "git", lastreal) rs.lasttag.Set(out) + rs.tagsDrop.Set(out) // rs.lastLabel.Set(out) return out } @@ -37,11 +38,11 @@ func (rs *RepoStatus) populateTags() { for _, tag := range listFiles(tmp) { if rs.tags[tag] == "" { log.Warn("populateTags() Adding new tag", tag) - rs.tagsDrop.AddText(tag) + rs.tagsDrop.Add(tag) rs.tags[tag] = "origin" } } - rs.tagsDrop.SetText(rs.lasttagrev) + // rs.tagsDrop.Set(rs.lasttagrev) } func (rs *RepoStatus) checkDirty() bool { -- cgit v1.2.3