git-workspace-service 0.4.1 → 0.4.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 CHANGED
@@ -650,6 +650,7 @@ var WorkspaceService = class {
650
650
  if (cloneUrl.startsWith("git@github.com:")) {
651
651
  cloneUrl = cloneUrl.replace("git@github.com:", "https://github.com/");
652
652
  }
653
+ cloneUrl = cloneUrl.replace(/\/+$/, "");
653
654
  if (!cloneUrl.endsWith(".git")) {
654
655
  cloneUrl = `${cloneUrl}.git`;
655
656
  }
@@ -784,6 +785,7 @@ var WorkspaceService = class {
784
785
  if (url.startsWith("git@github.com:")) {
785
786
  url = url.replace("git@github.com:", "https://github.com/");
786
787
  }
788
+ url = url.replace(/\/+$/, "");
787
789
  if (!url.endsWith(".git")) {
788
790
  url = `${url}.git`;
789
791
  }