Skip to content

Commit 4a68538

Browse files
author
Arthur Freitas Ramos
committed
fix: correct cloneRepo call signature in docs command
1 parent 81ce767 commit 4a68538

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -924,9 +924,8 @@ async function runDocsCommand(
924924
let tempDir: string | null = null;
925925

926926
try {
927-
const result = await cloneRepo(repoInfo.url, opts.branch || undefined);
928-
repoPath = result.path;
929-
tempDir = result.path;
927+
repoPath = await cloneRepo(repoInfo, process.cwd(), opts.branch || undefined);
928+
tempDir = repoPath;
930929
} catch (error) {
931930
console.error(chalk.red(`❌ Failed to clone repository: ${error}`));
932931
process.exit(1);

0 commit comments

Comments
 (0)