'deverr' was useful at the beginning when testing this code
This commit is contained in:
parent
7cacc395ef
commit
31702354f2
|
@ -49,7 +49,7 @@ func (repo *Repo) setDevelVersion() {
|
||||||
repo.DevelVersion = v
|
repo.DevelVersion = v
|
||||||
} else {
|
} else {
|
||||||
// log.Log(WARN, "gitpb.GitDevelVersion() error:", err)
|
// 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
|
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 {
|
func trimNonNumericFromStart(s string) string {
|
||||||
for i, r := range s {
|
for i, r := range s {
|
||||||
if unicode.IsDigit(r) {
|
if unicode.IsDigit(r) {
|
||||||
|
|
Loading…
Reference in New Issue