Skip to content

Commit

Permalink
Adding support for ssh upstreams
Browse files Browse the repository at this point in the history
  • Loading branch information
ptte committed Sep 16, 2014
1 parent b63921a commit 34ebd42
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions problems/forks_and_clones/verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ var exec = require('child_process').exec

exec('git remote -v', function(err, stdout, stdrr) {
var show = stdout.trim()
if (show.match("upstream") && show.match("github.com/jlord/"))

if (show.match("upstream") && show.match("github.com[\:\/]jlord/")) {
console.log("Upstream remote set up!")
else return console.log("No upstream remote")
} else {
return console.log("No upstream remote")
}
})

0 comments on commit 34ebd42

Please sign in to comment.