summaryrefslogtreecommitdiff
path: root/git.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-10 18:18:01 -0600
committerJeff Carr <[email protected]>2024-01-10 18:18:01 -0600
commit1c02e4d05fa5fb20ba3d38710da141f7d82d701f (patch)
treec0a0c56ac737239c11feb3b7cb9c56f641448d8f /git.go
parent54d8059a743f2ec747cf8c8506ab660eee45f437 (diff)
things are now almost automatic
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'git.go')
-rw-r--r--git.go5
1 files changed, 3 insertions, 2 deletions
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 {