Files
git-clone/README.md
T

1019 B

git-clone

Paseo plugin to clone any Git repository URL onto a Paseo daemon host and open it as a workspace.

Features

  • Accepts https://, http://, ssh://, git://, and SCP-like (user@host:owner/repo.git) Git URLs.
  • Validates URLs, folder names, and branch/tag names on both client and server (blocking unsafe schemes like file:// and ext::, argument injection, and path traversal).
  • Supports optional destination folder name override and optional branch/tag checkout (--branch).
  • Reuses an existing checkout if the target directory already has a matching origin remote.
  • Clones atomically via a temporary staging directory before renaming into place and opening the workspace in Paseo.

Installation

Install from Gitea into a Paseo daemon:

paseo plugin install git:https://git.site.latha.org/experiments/git-clone.git

Or install from a local checkout:

paseo plugin install /path/to/git-clone

Development

npm install
npm run typecheck
npm test