Skip to content

Commit

Permalink
fixed incorrect branchName check in tada
Browse files Browse the repository at this point in the history
  • Loading branch information
atourtillott committed May 21, 2015
1 parent 18d4474 commit 1bd30bb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions problems/merge_tada/verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ exec('git reflog -10', function(err, stdout, stdrr) {

exec('git branch', function(err, stdout, stdrr) {
branches = stdout.trim()

if (branches.match(user)) console.log("Uh oh, branch is still there.")
branchName = "add-"+user

if (branches.match(branchName)) console.log("Uh oh, branch is still there.")
else return console.log("Branch deleted!")
})
})
})
})

0 comments on commit 1bd30bb

Please sign in to comment.