better debugging output
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
b2c21e8c16
commit
c65dd45ba5
8
git.go
8
git.go
|
@ -90,15 +90,19 @@ func (rs *RepoStatus) getBranches() []string {
|
|||
|
||||
func (rs *RepoStatus) CheckDirty() bool {
|
||||
cmd := []string{"git", "diff-index", "--quiet", "HEAD"}
|
||||
err, b, out := RunCmd("/home/jcarr/go/src/" + rs.repopath, cmd)
|
||||
path := "/home/jcarr/go/src/" + rs.repopath
|
||||
err, b, out := RunCmd(path, cmd)
|
||||
if err != nil {
|
||||
log.Warn("CheckDirty() b =", b)
|
||||
log.Warn("CheckDirty() path =", path)
|
||||
log.Warn("CheckDirty() out =", out)
|
||||
log.Warn("CheckDirty() err =", err)
|
||||
log.Error(err, "CheckDirty() error")
|
||||
rs.dirtyLabel.Set("error")
|
||||
return true
|
||||
}
|
||||
log.Warn("CheckDirty() b =", b, "out =", out)
|
||||
if b {
|
||||
log.Warn("CheckDirty() b =", b, "path =", path, "out =", out)
|
||||
log.Warn("CheckDirty() no", rs.repopath)
|
||||
rs.dirtyLabel.Set("no")
|
||||
return false
|
||||
|
|
Loading…
Reference in New Issue