Git remote URL generated with duplicate port (2222:2222) in both dashboard and caution init output #344

Open
opened 2026-06-29 18:12:42 +00:00 by mkaihara · 0 comments
mkaihara commented 2026-06-29 18:12:42 +00:00 (Migrated from codeberg.org)

Summary

The "Deploy via Git" command shown in the dashboard, and the URL output by caution init, both contain the SSH port 2222 duplicated, producing an invalid URL that fails with a
hostname resolution error.

Steps to reproduce

  1. Run caution init in a project directory, or
  2. Open the app page in the Caution dashboard and look at the "Deploy via Git" section

Actual behaviour

The generated URL contains the port twice:
git remote add caution ssh://git@18.215.248.213:2222:2222/d9860409-a48f-4678-83c0-75ae42f0ca9d.git

Attempting to use this URL fails immediately:
ssh: Could not resolve hostname 18.215.248.213:2222:2222: nodename nor servname provided, or not known
fatal: Could not read from remote repository.

Expected behaviour

The port should appear only once:
git remote add caution ssh://git@18.215.248.213:2222/d9860409-a48f-4678-83c0-75ae42f0ca9d.git

Workaround

Manually fix the remote URL after caution init:
git remote set-url caution ssh://git@:2222/.git

Environment

  • macOS Darwin 25.5.0, Apple Silicon
  • caution 0.1.0
  • Self-hosted backend
Summary The "Deploy via Git" command shown in the dashboard, and the URL output by caution init, both contain the SSH port 2222 duplicated, producing an invalid URL that fails with a hostname resolution error. Steps to reproduce 1. Run caution init in a project directory, or 2. Open the app page in the Caution dashboard and look at the "Deploy via Git" section Actual behaviour The generated URL contains the port twice: git remote add caution ssh://git@18.215.248.213:2222:2222/d9860409-a48f-4678-83c0-75ae42f0ca9d.git Attempting to use this URL fails immediately: ssh: Could not resolve hostname 18.215.248.213:2222:2222: nodename nor servname provided, or not known fatal: Could not read from remote repository. Expected behaviour The port should appear only once: git remote add caution ssh://git@18.215.248.213:2222/d9860409-a48f-4678-83c0-75ae42f0ca9d.git Workaround Manually fix the remote URL after caution init: git remote set-url caution ssh://git@<host>:2222/<repo-id>.git Environment - macOS Darwin 25.5.0, Apple Silicon - caution 0.1.0 - Self-hosted backend
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
public/platform#344
No description provided.