Files
dockship/src/core/git.ts
T
2026-01-03 21:34:35 +01:00

9 lines
262 B
TypeScript

import simpleGit from "simple-git";
import fs from "fs";
export async function cloneRepo(repoUrl: string, deployPath: string) {
fs.mkdirSync(deployPath, { recursive: true });
const git = simpleGit();
await git.clone(repoUrl, deployPath, ["--depth=1"]);
}