From a07b2ee339210257b542c978aeb079df53c88daf Mon Sep 17 00:00:00 2001 From: Gregor Date: Tue, 4 Jun 2019 16:27:56 -0700 Subject: [PATCH] WIP just debugging nevermind me --- lib/get-git-auth-url.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/get-git-auth-url.js b/lib/get-git-auth-url.js index 4495d95d..de8ebbee 100644 --- a/lib/get-git-auth-url.js +++ b/lib/get-git-auth-url.js @@ -45,6 +45,13 @@ module.exports = async ({cwd, env, options: {repositoryUrl, branch}}) => { const envVar = Object.keys(GIT_TOKENS).find(envVar => !isNil(env[envVar])); const gitCredentials = `${GIT_TOKENS[envVar] || ''}${env[envVar] || ''}`; + console.log(`-------- envVar -------- `); + console.log(envVar); + console.log(`-------- GIT_TOKENS[envVar] -------- `); + console.log(GIT_TOKENS[envVar]); + console.log(`-------- env[envVar].substr(5) -------- `); + console.log((env[envVar] || '').substr(5)); + if (gitCredentials) { // If credentials are set via environment variables, convert the URL to http/https and add basic auth, otherwise return `repositoryUrl` as is const [match, auth, host, path] = /^(?!.+:\/\/)(?:(.*)@)?(.*?):(.*)$/.exec(repositoryUrl) || [];