changes in gitpb
This commit is contained in:
parent
54cdb3fbec
commit
93e9e4e43b
6
new.go
6
new.go
|
@ -39,7 +39,7 @@ func SetWorkPath(path string) {
|
|||
// don't worry, you can think of it like Sierpinski carpet
|
||||
// it's doesn't need to be displayed so it'll work fine even in an embedded space
|
||||
func NewRepoStatusWindow(repo *gitpb.Repo) (*RepoStatus, error) {
|
||||
path := repo.GoPath
|
||||
path := repo.GetGoPath()
|
||||
if windowMap[path] == nil {
|
||||
log.Log(INFO, "NewRepoStatusWindow() adding new", path)
|
||||
} else {
|
||||
|
@ -103,11 +103,11 @@ func NewRepoStatusWindow(repo *gitpb.Repo) (*RepoStatus, error) {
|
|||
rs.userWorkingName.SetText(rs.pb.GetUserBranchName())
|
||||
rs.userBranchVersion.SetLabel(rs.pb.GetUserBranchName())
|
||||
|
||||
if rs.pb.GoPath == "" {
|
||||
if rs.pb.GetGoPath ()== "" {
|
||||
// not golang repo
|
||||
} else {
|
||||
rs.isGoLang.SetText("true")
|
||||
rs.goPath.SetText(rs.pb.GoPath)
|
||||
rs.goPath.SetText(rs.pb.GetGoPath())
|
||||
}
|
||||
windowMap[path] = rs
|
||||
return rs, nil
|
||||
|
|
Loading…
Reference in New Issue