1019 B
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://andext::, 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
originremote. - 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