totally stupid logic before

This commit is contained in:
Jeff Carr 2025-02-15 05:33:13 -06:00
parent f0922a73f3
commit ae13593d05
1 changed files with 1 additions and 1 deletions

View File

@ -508,7 +508,7 @@ func justDeleteTheDevelBranchAlready(repo *gitpb.Repo) error {
remote := filepath.Join("origin", branch)
// check against remote if it exists
if repo.Exists(filepath.Join(".git/refs/remotes", remote)) {
if repo.IsDevelRemote() {
b1 := countGitDiffLog(repo, branch, remote) // should be zero
if b1 == 0 {
cmd := []string{"git", "branch", "-D", repo.GetDevelBranchName()}