summaryrefslogtreecommitdiff
path: root/git.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-12 06:23:31 -0600
committerJeff Carr <[email protected]>2024-02-12 06:23:31 -0600
commitba4051cb0c0f253a41d2b7675fc4e37872230df4 (patch)
treee9c4612fe97d91a00cfd69b81869fd5efdbca2fe /git.go
parent2b172338f61d0f0b003b5c8198b979b24d3b60ac (diff)
smarter tag window
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'git.go')
-rw-r--r--git.go24
1 files changed, 12 insertions, 12 deletions
diff --git a/git.go b/git.go
index 79464ab..0ddea8c 100644
--- a/git.go
+++ b/git.go
@@ -94,12 +94,12 @@ func (rs *RepoStatus) CheckDirty() bool {
path := rs.realPath.String()
err, b, out := RunCmd(path, cmd)
if err != nil {
- log.Warn("CheckDirty() b =", b)
- log.Warn("CheckDirty() cmd =", cmd)
- log.Warn("CheckDirty() path =", path)
- log.Warn("CheckDirty() out =", out)
- log.Warn("CheckDirty() err =", err)
- log.Error(err, "CheckDirty() error")
+ log.Warn("CheckDirty() status b =", b)
+ log.Warn("CheckDirty() status cmd =", cmd)
+ log.Warn("CheckDirty() status path =", path)
+ log.Warn("CheckDirty() status out =", out)
+ log.Warn("CheckDirty() status err =", err)
+ log.Error(err, "CheckDirty() git status error")
rs.dirtyLabel.SetValue("error")
return true
}
@@ -114,12 +114,12 @@ func (rs *RepoStatus) CheckDirty() bool {
}
// sometimes b gets exit status 1 when there isn't anything that has changed
// run git status fixes that for some reason.
- log.Log(WARN, "CheckDirty() true", rs.realPath.String())
- log.Log(WARN, "CheckDirty() cmd =", cmd)
- log.Log(WARN, "CheckDirty() b =", b)
- log.Log(WARN, "CheckDirty() path =", path)
- log.Log(WARN, "CheckDirty() out =", out)
- log.Log(WARN, "CheckDirty() err =", err)
+ log.Log(INFO, "CheckDirty() is normal dirty", rs.realPath.String())
+ log.Log(INFO, "CheckDirty() is normal cmd =", cmd)
+ log.Log(INFO, "CheckDirty() is normal b =", b)
+ log.Log(INFO, "CheckDirty() is normal path =", path)
+ log.Log(INFO, "CheckDirty() is normal out =", out)
+ log.Log(INFO, "CheckDirty() is normal err =", err)
rs.dirtyLabel.SetValue("dirty")
return true