Skip to content

Commit

Permalink
Merge pull request #1 from pwmckenna/master
Browse files Browse the repository at this point in the history
Adding support for git repos with https remote git urls
  • Loading branch information
davglass committed Jul 12, 2013
2 parents 1e97723 + a23c999 commit 5460782
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/index.js
Expand Up @@ -45,8 +45,10 @@ var getInfo = function(callback) {
if (origin.indexOf('git@') === 0) {
//private repo
origin = origin.replace('git@github.com:', '').replace('.git', '').split('/');
} else {
} else if (origin.indexOf('git://') === 0) {
origin = origin.replace('git://github.com/', '').replace('.git', '').split('/');
} else if (origin.indexOf('https://') === 0) {
origin = origin.replace('https://github.com/', '').replace('.git', '').split('/');
}
if (origin && origin.length) {
user = origin[0].trim();
Expand Down

0 comments on commit 5460782

Please sign in to comment.