totally stupid logic before
This commit is contained in:
parent
f0922a73f3
commit
ae13593d05
|
@ -508,7 +508,7 @@ func justDeleteTheDevelBranchAlready(repo *gitpb.Repo) error {
|
||||||
remote := filepath.Join("origin", branch)
|
remote := filepath.Join("origin", branch)
|
||||||
|
|
||||||
// check against remote if it exists
|
// 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
|
b1 := countGitDiffLog(repo, branch, remote) // should be zero
|
||||||
if b1 == 0 {
|
if b1 == 0 {
|
||||||
cmd := []string{"git", "branch", "-D", repo.GetDevelBranchName()}
|
cmd := []string{"git", "branch", "-D", repo.GetDevelBranchName()}
|
||||||
|
|
Loading…
Reference in New Issue