summaryrefslogtreecommitdiff
path: root/git.go
diff options
context:
space:
mode:
Diffstat (limited to 'git.go')
-rw-r--r--git.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/git.go b/git.go
index d62920a..a90ac57 100644
--- a/git.go
+++ b/git.go
@@ -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:
}
}