Skip to content

Commit 9ae1a2c

Browse files
committed
another brick in the wall
1 parent 22d0d32 commit 9ae1a2c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs-viewer/src/preview-docs.ts

+2
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,14 @@ async function cloneRepo(details: ReturnType<typeof repoDetails>) {
9999
log(`Cloning ${chalk.green(details.repoPath)} to ${chalk.green(relativePath)}`);
100100
const proc = Bun.spawn(['git', 'clone', details.gitUrl, relativePath, '--depth=1'], {
101101
cwd: docsViewerRoot,
102+
stdin: 'inherit',
102103
});
103104
const exitCode = await proc.exited;
104105

105106
// if the clone fails for publicKey we try https
106107
if (exitCode !== 0) {
107108
const reason = await new Response(proc.stderr).text();
109+
108110
if (reason.includes('publickey')) {
109111
log(`Cloning ${chalk.green(details.repoPath)} to ${chalk.green(relativePath)} using https`);
110112
const proc2 = Bun.spawn(['git', 'clone', details.httpsUrl, relativePath, '--depth=1'], {

0 commit comments

Comments
 (0)