From 2ce9051921ef1ef93b6bcaa48850f2b207b86598 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 21 Mar 2024 16:16:35 -0500 Subject: exec things to STDOUT Signed-off-by: Jeff Carr --- gitConfig.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gitConfig.go') diff --git a/gitConfig.go b/gitConfig.go index abfc72a..b2c2af9 100644 --- a/gitConfig.go +++ b/gitConfig.go @@ -281,5 +281,14 @@ func (rs *RepoStatus) BranchExists(branch string) bool { log.Log(REPOWARN, rs.Path(), "found branch", branch, hash) return true } + for i, t := range rs.Tags.tags { + base := filepath.Base(t.tag.String()) + if base == branch { + log.Info("found tag:", i, t.tag.String()) + return true + } + log.Info("not tag:", i, t.tag.String()) + } + log.Log(REPOWARN, rs.Path(), "did not find branch", branch) return false } -- cgit v1.2.3