Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed git origin parsing with using https urls

  • Loading branch information...
commit f9c5e775f2705697954d974e232eb6b727f699a3 1 parent e1840af
@davglass davglass authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/git.js
View
4 lib/git.js
@@ -154,8 +154,10 @@ mods = {
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];
Please sign in to comment.
Something went wrong with that request. Please try again.