Initial git-clone Paseo plugin (refactored from gitea-clone)

This commit is contained in:
nandi committed 2026-11-20 14:43:26 -08:00
commit 2fa79ffc69
14 files changed
+5229

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
# 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
```