fixes for new gitpb
This commit is contained in:
parent
2141737e7c
commit
5694d40fa3
|
@ -64,7 +64,7 @@ func (c *controlBox) addRepo(path string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if c.GoPath.String() == "" {
|
if c.GoPath.String() == "" {
|
||||||
c.GoPath.SetText(repo.GoPath)
|
c.GoPath.SetText(repo.GetGoPath())
|
||||||
}
|
}
|
||||||
|
|
||||||
lasttag := repo.GetLastTagVersion()
|
lasttag := repo.GetLastTagVersion()
|
||||||
|
|
2
main.go
2
main.go
|
@ -43,7 +43,7 @@ func main() {
|
||||||
forge = forgepb.Init()
|
forge = forgepb.Init()
|
||||||
os.Setenv("REPO_WORK_PATH", forge.GetGoSrc())
|
os.Setenv("REPO_WORK_PATH", forge.GetGoSrc())
|
||||||
|
|
||||||
repo = forge.Repos.FindByGoPath(argv.Repo)
|
repo = forge.FindByGoPath(argv.Repo)
|
||||||
if repo == nil {
|
if repo == nil {
|
||||||
log.Info("repo not found. you need to clone", argv.Repo)
|
log.Info("repo not found. you need to clone", argv.Repo)
|
||||||
os.Exit(-1)
|
os.Exit(-1)
|
||||||
|
|
Loading…
Reference in New Issue