Skip to content

Commit

Permalink
removing console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
f-sign authored and chrisirhc committed Jan 4, 2017
1 parent 755464b commit 1fc547a
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/resolvers/exotics/hosted-git-resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ export function explodeHostedGitFragment(fragment: string, reporter: Reporter):
const parts = fragment.split(':');
//fragment = parts.pop();

//console.log('Input Fragment: ' + fragment);

if (parts.length == 3) { // protocol + host + folder
parts[1] = parts[1].indexOf('//') >= 0 ? parts[1].substr(2) : parts[1];
fragment = parts[1] + '/' + parts[2];
Expand All @@ -43,12 +41,8 @@ export function explodeHostedGitFragment(fragment: string, reporter: Reporter):
throw new MessageError(reporter.lang('invalidHostedGitFragment', fragment));
}

//console.log('Output Fragment: ' + fragment);

const userParts = fragment.split('/');

//console.log(userParts);

if (userParts.length >= 2) {

if (userParts[0].indexOf('@') >= 0) {
Expand All @@ -57,14 +51,6 @@ export function explodeHostedGitFragment(fragment: string, reporter: Reporter):

const user = userParts.shift();
const repoParts = userParts.join('/').split(/(?:[.]git)?#(.*)/);

//console.log(repoParts);

// console.log({
// user,
// repo: repoParts[0].replace('.git', ''),
// hash: repoParts[1] || '',
// });

if (repoParts.length <= 3) {
return {
Expand Down

0 comments on commit 1fc547a

Please sign in to comment.