Skip to content

Commit

Permalink
Merge branch 'master' of github.com:jlord/git-it
Browse files Browse the repository at this point in the history
  • Loading branch information
Jessica Lord committed May 31, 2015
2 parents 8868723 + a083a75 commit bf7c00a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion problems/branches_arent_just_for_birds/verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var username = ""
// verify they've pushed
// check the file is in contributors directory

exec('git config user.username', function(err, stdout, stdrr) {
exec('git config user.username', function(err, stdout, stderr) {
if (err) return console.log(err)
username = stdout.trim()

Expand Down
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 bf7c00a

Please sign in to comment.