git-workspace-service 0.4.0 → 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.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -675,6 +675,7 @@ var WorkspaceService = class {
|
|
|
675
675
|
if (cloneUrl.startsWith("git@github.com:")) {
|
|
676
676
|
cloneUrl = cloneUrl.replace("git@github.com:", "https://github.com/");
|
|
677
677
|
}
|
|
678
|
+
cloneUrl = cloneUrl.replace(/\/+$/, "");
|
|
678
679
|
if (!cloneUrl.endsWith(".git")) {
|
|
679
680
|
cloneUrl = `${cloneUrl}.git`;
|
|
680
681
|
}
|
|
@@ -809,6 +810,7 @@ var WorkspaceService = class {
|
|
|
809
810
|
if (url.startsWith("git@github.com:")) {
|
|
810
811
|
url = url.replace("git@github.com:", "https://github.com/");
|
|
811
812
|
}
|
|
813
|
+
url = url.replace(/\/+$/, "");
|
|
812
814
|
if (!url.endsWith(".git")) {
|
|
813
815
|
url = `${url}.git`;
|
|
814
816
|
}
|