summaryrefslogtreecommitdiff
path: root/gitTag.common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-21 17:17:10 -0600
committerJeff Carr <[email protected]>2025-02-21 17:17:10 -0600
commit5ec788fe1766c1c70d30abfc1998a428d52459d4 (patch)
treecc3f37bee7eab5b264b3d5e47b035cfe90f6a4d1 /gitTag.common.go
parent587a3debebc87abbe4bed5302f34520da403befe (diff)
Diffstat (limited to 'gitTag.common.go')
-rw-r--r--gitTag.common.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/gitTag.common.go b/gitTag.common.go
index 81e44c3..c41f7c1 100644
--- a/gitTag.common.go
+++ b/gitTag.common.go
@@ -112,13 +112,12 @@ func (repo *Repo) IsLocalBranch(findname string) bool {
loop := repo.Tags.All()
for loop.Scan() {
t := loop.Next()
- // log.Info("LocalTagExists() tag:", t.Refname)
-
- tagname := t.Refname
- if strings.HasPrefix(tagname, "refs/heads") {
+ if !strings.HasPrefix(t.Refname, "refs/heads") {
+ // log.Info("LocalTagExists() skip tag:", t.Refname)
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())
if filename == findname {
log.Log(INFO, "gitpb.IsBranch() found tag:", path, filename, "from", repo.GetGoPath())