'deverr' was useful at the beginning when testing this code

This commit is contained in:
Jeff Carr 2025-02-02 11:44:56 -06:00
parent 7cacc395ef
commit 31702354f2
1 changed files with 11 additions and 1 deletions

View File

@ -49,7 +49,7 @@ func (repo *Repo) setDevelVersion() {
repo.DevelVersion = v
} else {
// log.Log(WARN, "gitpb.GitDevelVersion() error:", err)
repo.DevelVersion = "deverr"
repo.DevelVersion = ""
}
}
@ -212,6 +212,16 @@ func (repo *Repo) IsLocalBranch(findname string) bool {
return false
}
// todo: redo this and above. both are messed up. ignore for now until things are stable
func (repo *Repo) IsDevelRemote() bool {
bname := repo.GetDevelBranchName()
rpath := filepath.Join("refs/remotes/origin", bname)
if repo.Exists(rpath) {
return true
}
return false
}
func trimNonNumericFromStart(s string) string {
for i, r := range s {
if unicode.IsDigit(r) {