From 9cc9b9bc8733a02e5e9de88a7a3ffb6672aa345c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 9 Feb 2025 16:48:45 -0600 Subject: detect more devel branch problems --- branches.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'branches.go') diff --git a/branches.go b/branches.go index e6d0570..192e4e3 100644 --- a/branches.go +++ b/branches.go @@ -40,6 +40,10 @@ func (repo *Repo) ExistsUserBranch() bool { // todo: actually use .git/config return true } + if repo.Exists(filepath.Join(".git/refs/remote/origin", branchname)) { + // todo: actually use .git/config + return true + } return false } @@ -53,6 +57,10 @@ func (repo *Repo) ExistsDevelBranch() bool { // todo: actually use .git/config return true } + if repo.Exists(filepath.Join(".git/refs/remote/origin", branchname)) { + // todo: actually use .git/config + return true + } return false } -- cgit v1.2.3