From 966e3d785898a0ba17e87b7045e36b811519e212 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 19 Jan 2025 08:48:43 -0600 Subject: recreate user branches --- currentVersions.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'currentVersions.go') diff --git a/currentVersions.go b/currentVersions.go index db2ebfa..7f64335 100644 --- a/currentVersions.go +++ b/currentVersions.go @@ -55,6 +55,11 @@ func (repo *Repo) setDevelVersion() { func (repo *Repo) setUserVersion() { bname := repo.GetUserBranchName() + if !repo.Exists(filepath.Join(".git/refs/heads", bname)) { + // the user branch does not exist at this time + repo.UserVersion = "uerr" + return + } v, err := repo.gitVersionByName(bname) if err == nil { repo.UserVersion = v -- cgit v1.2.3