From c92adc93d8bd1635472261096646eb6e0c204949 Mon Sep 17 00:00:00 2001 From: Anton Galtsev Date: Tue, 21 Mar 2017 18:55:14 +0300 Subject: [PATCH] slashes fix --- lib/git.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/git.js b/lib/git.js index a8f0b23..dfecf00 100644 --- a/lib/git.js +++ b/lib/git.js @@ -629,7 +629,7 @@ exports.get = (function() { switch (uriParsed.protocol) { case "ssh:": { - uriCloneConfig = _.pick(uriParsed, [ "host", "auth" ]); + uriCloneConfig = _.pick(uriParsed, [ "protocol", "slashes", "host", "auth" ]); // project path could be divided by `:` or `/` if (uriParsed.pathname.indexOf(":") == -1) { @@ -643,7 +643,7 @@ exports.get = (function() { return; } - uriClone = uriParsed.protocol + url.format(uriCloneConfig) + '/' + sshProject; + uriClone = url.format(uriCloneConfig) + '/' + sshProject; break; }