From 5aaf02ee3aeafc17a70ddc32619a17ae19a6f1ed Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 22 Feb 2024 05:24:31 -0600 Subject: actually create the user branches --- gitConfig.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gitConfig.go') diff --git a/gitConfig.go b/gitConfig.go index e49c2b7..519d294 100644 --- a/gitConfig.go +++ b/gitConfig.go @@ -249,3 +249,12 @@ func (rs *RepoStatus) processBranch(branch string) { rs.gitConfig.versions[newhash] = name log.Log(INFO, " hash: version", name) } + +func (rs *RepoStatus) BranchExists(branch string) bool { + hash, ok := rs.gitConfig.hashes[branch] + if ok { + log.Log(REPOWARN, rs.Path(), "found branch", branch, hash) + return true + } + return false +} -- cgit v1.2.3