wrong logic
This commit is contained in:
parent
587a3debeb
commit
5ec788fe17
|
@ -112,13 +112,12 @@ func (repo *Repo) IsLocalBranch(findname string) bool {
|
||||||
loop := repo.Tags.All()
|
loop := repo.Tags.All()
|
||||||
for loop.Scan() {
|
for loop.Scan() {
|
||||||
t := loop.Next()
|
t := loop.Next()
|
||||||
// log.Info("LocalTagExists() tag:", t.Refname)
|
if !strings.HasPrefix(t.Refname, "refs/heads") {
|
||||||
|
// log.Info("LocalTagExists() skip tag:", t.Refname)
|
||||||
tagname := t.Refname
|
|
||||||
if strings.HasPrefix(tagname, "refs/heads") {
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
path, filename := filepath.Split(tagname)
|
// log.Info("LocalTagExists() check tag:", t.Refname)
|
||||||
|
path, filename := filepath.Split(t.Refname)
|
||||||
log.Log(INFO, "gitpb.IsBranch() tag:", path, filename, "from", repo.GetGoPath())
|
log.Log(INFO, "gitpb.IsBranch() tag:", path, filename, "from", repo.GetGoPath())
|
||||||
if filename == findname {
|
if filename == findname {
|
||||||
log.Log(INFO, "gitpb.IsBranch() found tag:", path, filename, "from", repo.GetGoPath())
|
log.Log(INFO, "gitpb.IsBranch() found tag:", path, filename, "from", repo.GetGoPath())
|
||||||
|
|
Loading…
Reference in New Issue