Skip to content

Cherry-pick ca5e352c5: CLI include commit hash in --version output#1282

Merged
alexey-pelykh merged 1 commit intomainfrom
cherry-pick/ca5e352c5-version-commit-hash
Mar 14, 2026
Merged

Cherry-pick ca5e352c5: CLI include commit hash in --version output#1282
alexey-pelykh merged 1 commit intomainfrom
cherry-pick/ca5e352c5-version-commit-hash

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Cherry-pick from upstream

Upstream commit: ca5e352c5
Author: Altay, echoVic
Tier: AUTO-PARTIAL
Issue: #903

Changes

Include the git commit hash in --version output (e.g., RemoteClaw 0.1.0 (abc1234)). Hardens commit SHA resolution with moduleUrl anchoring to package root, caching per search directory, and safe ref path traversal.

Adaptation

  • Discarded gutted files: CHANGELOG.md, scripts/docker/install-sh-*, scripts/install.sh, src/install-sh-version.test.ts, src/entry.version-fast-path.test.ts (tests upstream's fast path which we gutted)
  • Rebrand applied: openclawremoteclaw in imports, package names, test fixtures, user-facing strings
  • Conflict resolution: entry.ts fast path functions (gutted in fork — kept ours), status.ts branding (applied upstream's moduleUrl param with our branding), remoteclaw-root.test.ts (union merge — added upstream's new invalid-moduleUrl test with rebranding)

Cherry-picked from openclaw/openclaw@ca5e352c5.

Discarded gutted files: CHANGELOG.md, scripts/docker/install-sh-*,
scripts/install.sh, src/install-sh-version.test.ts,
src/entry.version-fast-path.test.ts (tests gutted fast path).

Rebrand applied: openclaw→remoteclaw in imports, package names, tests.

Co-authored-by: echoVic <[email protected]>
Co-authored-by: echoVic <[email protected]>
@alexey-pelykh alexey-pelykh merged commit 62a48bc into main Mar 14, 2026
7 checks passed
@alexey-pelykh alexey-pelykh deleted the cherry-pick/ca5e352c5-version-commit-hash branch March 14, 2026 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants