@adobe/aem-cli 16.20.0 → 16.20.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/CHANGELOG.md +14 -0
- package/package.json +2 -2
- package/src/up.cmd.js +24 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [16.20.2](https://github.com/adobe/helix-cli/compare/v16.20.1...v16.20.2) (2026-06-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **up:** handle non-parseable SSH git remote origin gracefully ([#2741](https://github.com/adobe/helix-cli/issues/2741)) ([d2d34d4](https://github.com/adobe/helix-cli/commit/d2d34d44d515e455ed39d1820311752ad1b608ad))
|
|
7
|
+
|
|
8
|
+
## [16.20.1](https://github.com/adobe/helix-cli/compare/v16.20.0...v16.20.1) (2026-06-09)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update adobe fixes to v11.1.26 ([#2740](https://github.com/adobe/helix-cli/issues/2740)) ([95b9cd8](https://github.com/adobe/helix-cli/commit/95b9cd8c3ae3963994b133093b119ddb610389c6))
|
|
14
|
+
|
|
1
15
|
# [16.20.0](https://github.com/adobe/helix-cli/compare/v16.19.14...v16.20.0) (2026-06-04)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/aem-cli",
|
|
3
|
-
"version": "16.20.
|
|
3
|
+
"version": "16.20.2",
|
|
4
4
|
"description": "AEM CLI",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@adobe/fetch": "4.3.0",
|
|
47
47
|
"@adobe/helix-log": "7.0.0",
|
|
48
|
-
"@adobe/helix-shared-config": "11.1.
|
|
48
|
+
"@adobe/helix-shared-config": "11.1.26",
|
|
49
49
|
"@adobe/helix-shared-git": "3.0.25",
|
|
50
50
|
"@adobe/helix-shared-indexer": "2.2.7",
|
|
51
51
|
"@adobe/helix-shared-process-queue": "3.1.9",
|
package/src/up.cmd.js
CHANGED
|
@@ -139,11 +139,32 @@ export default class UpCommand extends AbstractServerCommand {
|
|
|
139
139
|
});
|
|
140
140
|
|
|
141
141
|
const ref = await GitUtils.getBranch(this.directory);
|
|
142
|
-
|
|
142
|
+
let gitUrlError;
|
|
143
|
+
try {
|
|
144
|
+
this._gitUrl = await GitUtils.getOriginURL(this.directory, { ref });
|
|
145
|
+
} catch (e) {
|
|
146
|
+
gitUrlError = e;
|
|
147
|
+
}
|
|
148
|
+
|
|
143
149
|
if (!this._gitUrl) {
|
|
144
|
-
|
|
150
|
+
if (gitUrlError) {
|
|
151
|
+
if (this._originalUrl && !this._originalUrl.includes('{{')) {
|
|
152
|
+
this.log.warn(chalk`Could not parse git remote origin URL: {yellow ${gitUrlError.message}}`);
|
|
153
|
+
this.log.warn(chalk`Continuing with the provided {cyan --url} value.`);
|
|
154
|
+
this._url = this._originalUrl;
|
|
155
|
+
} else {
|
|
156
|
+
this.log.error(chalk`Could not parse git remote origin URL: {yellow ${gitUrlError.message}}`);
|
|
157
|
+
this.log.error('The git remote origin uses an SSH URL format that cannot be automatically resolved.');
|
|
158
|
+
this.log.error(chalk`Please specify the content origin URL using the {cyan --url} option:`);
|
|
159
|
+
this.log.error(chalk` {cyan aem up --url https://main--<repo>--<owner>.aem.page}`);
|
|
160
|
+
throw Error('Invalid git remote origin URL. Use --url to specify the content origin.');
|
|
161
|
+
}
|
|
162
|
+
} else {
|
|
163
|
+
throw Error('No git remote found. Make sure you have a remote "origin" configured.');
|
|
164
|
+
}
|
|
165
|
+
} else {
|
|
166
|
+
await this.initUrl(this._gitUrl, ref);
|
|
145
167
|
}
|
|
146
|
-
await this.initUrl(this._gitUrl, ref);
|
|
147
168
|
this._project.withProxyUrl(this._url);
|
|
148
169
|
const { site, org } = this.extractSiteAndOrg(this._url);
|
|
149
170
|
if (site && org) {
|