summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doClean.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/doClean.go b/doClean.go
index bb6b134..2f7b901 100644
--- a/doClean.go
+++ b/doClean.go
@@ -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()}