@gearbox-protocol/deploy-tools 1.1.0 → 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.
Files changed (2) hide show
  1. package/dist/index.js +4 -3
  2. 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" });
@@ -150784,8 +150785,8 @@ async function cloneRepo(opts) {
150784
150785
  throw error ?? new Error(stderr?.toString());
150785
150786
  }
150786
150787
  if (commit) {
150787
- const reset = [destDir, "reset", "--hard", commit, "--"];
150788
- log.trace(...reset);
150788
+ const reset = ["reset", "--hard", commit, "--"];
150789
+ log.trace(destDir, ...reset);
150789
150790
  let { stderr: stderr2, status: status2, error: error2 } = (0, import_node_child_process.spawnSync)("git", reset, {
150790
150791
  cwd: import_node_path.default.resolve(sandboxDir, destDir)
150791
150792
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/deploy-tools",
3
3
  "description": "Gearbox deploy tools",
4
- "version": "1.1.0",
4
+ "version": "1.1.2",
5
5
  "homepage": "https://gearbox.fi",
6
6
  "keywords": [
7
7
  "gearbox"