Files
git-clone/README.md
T

34 lines
1019 B
Markdown

# 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:
```bash
paseo plugin install git:https://git.site.latha.org/experiments/git-clone.git
```
Or install from a local checkout:
```bash
paseo plugin install /path/to/git-clone
```
## Development
```bash
npm install
npm run typecheck
npm test
```