From bc4b84b450a528ad9f34e1908a23e0409413ccd4 Mon Sep 17 00:00:00 2001 From: Nitin Goyal Date: Mon, 26 Nov 2018 18:44:54 +0530 Subject: [PATCH] issue @283 fix --- app-backend/src/utils/GitHelper.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app-backend/src/utils/GitHelper.js b/app-backend/src/utils/GitHelper.js index 48602f4..de540c2 100644 --- a/app-backend/src/utils/GitHelper.js +++ b/app-backend/src/utils/GitHelper.js @@ -25,6 +25,8 @@ module.exports = { const USER = encodeURIComponent(username); const PASS = encodeURIComponent(pass); + + repo = repo.replace(/^(?:https?:\/\/)?/i, ''); const remote = `https://${USER}:${PASS}@${repo}`; @@ -49,4 +51,4 @@ module.exports = { }) } -}; \ No newline at end of file +};