summaryrefslogtreecommitdiff
path: root/gitConfig.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-03-21 16:16:35 -0500
committerJeff Carr <[email protected]>2024-03-21 16:16:35 -0500
commit2ce9051921ef1ef93b6bcaa48850f2b207b86598 (patch)
treef2e19ffa6cef7eb4a153e01450618cca9c85ad09 /gitConfig.go
parent804acc169a49320a5f9a0efb60847071f7fee7f2 (diff)
exec things to STDOUT
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gitConfig.go')
-rw-r--r--gitConfig.go9
1 files changed, 9 insertions, 0 deletions
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
}