diff options
| author | Jeff Carr <[email protected]> | 2024-01-19 12:36:52 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-19 12:36:52 -0600 |
| commit | e7257a919d75f63a27ef291f1e59a802a8a285cd (patch) | |
| tree | d9dac62fb4221e89601a1414f1b932174e87a14d /git.go | |
| parent | 7a283a1da6f91c560afda240d36236c9f515d020 (diff) | |
lots of things broken
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'git.go')
| -rw-r--r-- | git.go | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -32,14 +32,14 @@ func (rs *RepoStatus) GetLastTagVersion() string { func (rs *RepoStatus) getCurrentBranchName() string { out := run(rs.repopath, "git", "branch --show-current") log.Warn("getCurrentBranchName() =", out) - rs.currentBranch.SetText(out) + rs.currentBranch.SetValue(out) return out } func (rs *RepoStatus) getCurrentBranchVersion() string { out := run(rs.repopath, "git", "describe --tags") log.Warn("getCurrentBranchVersion()", out) - rs.currentVersion.SetText(out) + rs.currentVersion.SetValue(out) return out } @@ -51,7 +51,7 @@ func (rs *RepoStatus) getLastTagVersion() string { lastreal := "describe --tags " + out // out = run(r.path, "git", "describe --tags c871d5ecf051a7dc4e3a77157cdbc0a457eb9ae1") out = run(rs.repopath, "git", lastreal) - rs.lasttag.SetText(out) + rs.lasttag.SetValue(out) rs.tagsDrop.SetText(out) // rs.lastLabel.SetText(out) return out @@ -109,17 +109,17 @@ func (rs *RepoStatus) CheckDirty() bool { log.Warn("CheckDirty() out =", out) log.Warn("CheckDirty() err =", err) log.Error(err, "CheckDirty() error") - rs.dirtyLabel.SetText("error") + rs.dirtyLabel.SetValue("error") return true } if b { log.Warn("CheckDirty() b =", b, "path =", path, "out =", out) log.Warn("CheckDirty() no", rs.repopath) - rs.dirtyLabel.SetText("no") + rs.dirtyLabel.SetValue("no") return false } log.Warn("CheckDirty() true", rs.repopath) - rs.dirtyLabel.SetText("dirty") + rs.dirtyLabel.SetValue("dirty") return true } @@ -147,11 +147,11 @@ func (rs *RepoStatus) checkoutBranch(level string, branch string) { switch level { case "master": - rs.masterBranchVersion.SetText(realversion) + rs.masterBranchVersion.SetValue(realversion) case "devel": - rs.develBranchVersion.SetText(realversion) + rs.develBranchVersion.SetValue(realversion) case "user": - rs.userBranchVersion.SetText(realversion) + rs.userBranchVersion.SetValue(realversion) default: } } |
