still has oneliner display bug
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
dae15b5931
commit
edf74e160e
2
draw.go
2
draw.go
|
@ -94,7 +94,7 @@ func (rs *RepoStatus) drawGitBranches() {
|
|||
|
||||
newgrid.NewButton("show .git/config", func() {
|
||||
if rs.gitConfig == nil {
|
||||
log.Log(WARN, "Nonexistant or damaged .git/config", rs.GetPath())
|
||||
log.Log(WARN, "Nonexistant or damaged .git/config", rs.String())
|
||||
return
|
||||
}
|
||||
log.Log(WARN, ".git/config:", rs.realPath.String())
|
||||
|
|
8
git.go
8
git.go
|
@ -10,12 +10,14 @@ import (
|
|||
)
|
||||
|
||||
func (rs *RepoStatus) String() string {
|
||||
return rs.goSrcPath.String()
|
||||
return rs.path.String()
|
||||
}
|
||||
|
||||
/*
|
||||
func (rs *RepoStatus) GetPath() string {
|
||||
return rs.goSrcPath.String()
|
||||
return rs.path.String()
|
||||
}
|
||||
*/
|
||||
|
||||
func (rs *RepoStatus) GetCurrentBranchName() string {
|
||||
return rs.currentBranch.String()
|
||||
|
@ -238,7 +240,7 @@ func (rs *RepoStatus) GetStatus() string {
|
|||
log.Log(INFO, "Branches are Perfect")
|
||||
return "PERFECT"
|
||||
}
|
||||
log.Log(INFO, rs.GetPath(), "Branches are not Perfect")
|
||||
log.Log(INFO, rs.String(), "Branches are not Perfect")
|
||||
return "unknown branches"
|
||||
}
|
||||
|
||||
|
|
|
@ -217,7 +217,8 @@ func (rs *RepoStatus) ReadGoMod() bool {
|
|||
currentversion, ok := deps[godep]
|
||||
if ok {
|
||||
if currentversion != version {
|
||||
log.Log(WARN, "versions do not match!!!", deps[godep], version, currentversion)
|
||||
log.Log(WARN, "REPO:", rs.String(), rs.realPath.String())
|
||||
log.Log(WARN, " version mismatch:", godep, version, currentversion)
|
||||
}
|
||||
} else {
|
||||
deps[godep] = version
|
||||
|
|
Loading…
Reference in New Issue