gitpb/common.go

24 lines
422 B
Go
Raw Normal View History

package gitpb
2024-12-17 06:37:14 -06:00
import "go.wit.com/log"
func (repo *Repo) SetReadOnly(b bool) {
repo.ReadOnly = b
}
func (repo *Repo) SetTargetVersion(target string) {
repo.TargetVersion = target
}
func (repo *Repo) SetMasterBranchName(s string) {
2024-12-17 06:37:14 -06:00
log.Info("gitpb.SetMaster() SET MASTER TO", s)
repo.MasterBranchName = s
}
2024-12-17 06:37:14 -06:00
func (repo *Repo) GetGoPath() string {
if repo.GoInfo == nil {
return ""
}
return repo.GoInfo.GoPath
}