@gearbox-protocol/deploy-tools 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -150768,8 +150768,9 @@ var log_default = logger;
|
|
|
150768
150768
|
// src/git.ts
|
|
150769
150769
|
var DEPLOY_REPOS = ["deploy-v2", "deploy-v3"];
|
|
150770
150770
|
function getGithubUrl(repo) {
|
|
150771
|
+
const https = !!process.env.GITHUB_HTTPS;
|
|
150771
150772
|
const path4 = repo.replace(/^@/, "").replace(/\/$/, "");
|
|
150772
|
-
return `https://github.com/${path4}.git`;
|
|
150773
|
+
return https ? `https://github.com/${path4}.git` : `git@github.com:${path4}.git`;
|
|
150773
150774
|
}
|
|
150774
150775
|
async function cloneRepo(opts) {
|
|
150775
150776
|
const log = log_default.getSubLogger({ name: "git" });
|