Skip to content

Commit

Permalink
Merge branch 'fix-custom-gitlab'
Browse files Browse the repository at this point in the history
  • Loading branch information
hotoo committed Jul 15, 2015
2 parents 2fea7be + bc358b2 commit 7fb1f39
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
2 changes: 2 additions & 0 deletions bin/gitopen
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ function getConfig(uri) {
var type = config[hostname].type;
if (type === 'custom') {
result.scheme = config[hostname].scheme || {};
} else {
result.scheme = require('../lib/scheme/' + config[hostname].type);
}
return true;
}
Expand Down
11 changes: 1 addition & 10 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
/* global module */

function merge() {
var args = Array.prototype.slice.call(arguments);
var merged = {};
args.forEach(function(object) {
Object.keys(object).forEach(function(key) {
merged[key] = object[key];
});
});
return merged;
}
var merge = require('deepmerge');

var DEFAULT_OPTIONS = {
hash: 'master',
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"homepage": "https://github.com/hotoo/gitopen",
"dependencies": {
"commander": "^2.8.1",
"deepmerge": "~0.2.10",
"js-yaml": "^3.3.1"
},
"devDependencies": {
Expand Down

0 comments on commit 7fb1f39

Please sign in to comment.