summaryrefslogtreecommitdiff
path: root/gitConfig.go
diff options
context:
space:
mode:
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
}