diff --git a/dist/index.js b/dist/index.js index 60debf7..cbf0337 100644 --- a/dist/index.js +++ b/dist/index.js @@ -25659,7 +25659,10 @@ const child_process_1 = __nccwpck_require__(5317); const fs_1 = __nccwpck_require__(9896); const date_fns_1 = __nccwpck_require__(4367); function gitClone(dir, url) { - (0, child_process_1.execSync)(`git clone ${url}`, { cwd: dir }); + // Note - intentionally, this is not `execSync(..., { cwd: dir })` - because that will cause the repo to get + // cloned into `/`. We _could_ just pass the "working directory" as the `cwd` argument, but it's + // more direct to simply specify the path we want it cloned into. + (0, child_process_1.execSync)(`git clone ${url} ${dir}`); } function getNLatestCommits(dir, n) { const logOutput = (0, child_process_1.execSync)( diff --git a/node_modules/@vercel/ncc/dist/ncc/cli.js.cache b/node_modules/@vercel/ncc/dist/ncc/cli.js.cache index f9bec69..7448989 100644 Binary files a/node_modules/@vercel/ncc/dist/ncc/cli.js.cache and b/node_modules/@vercel/ncc/dist/ncc/cli.js.cache differ diff --git a/node_modules/@vercel/ncc/dist/ncc/index.js.cache b/node_modules/@vercel/ncc/dist/ncc/index.js.cache index de9a541..e2c1e43 100644 Binary files a/node_modules/@vercel/ncc/dist/ncc/index.js.cache and b/node_modules/@vercel/ncc/dist/ncc/index.js.cache differ diff --git a/node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js.cache b/node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js.cache index ed80534..8763812 100644 Binary files a/node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js.cache and b/node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js.cache differ diff --git a/node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js.cache b/node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js.cache index 81dd9e5..a92a29c 100644 Binary files a/node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js.cache and b/node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js.cache differ diff --git a/node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache b/node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache index 405c880..bf7809c 100644 Binary files a/node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache and b/node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache differ diff --git a/src/git.ts b/src/git.ts index b794480..cd375f5 100644 --- a/src/git.ts +++ b/src/git.ts @@ -6,7 +6,10 @@ import { mkdirSync } from "fs"; import { format } from 'date-fns'; export function gitClone(dir: string, url: string) { - execSync(`git clone ${url}`, { cwd: dir }); + // Note - intentionally, this is not `execSync(..., { cwd: dir })` - because that will cause the repo to get + // cloned into `/`. We _could_ just pass the "working directory" as the `cwd` argument, but it's + // more direct to simply specify the path we want it cloned into. + execSync(`git clone ${url} ${dir}`); } export function getNLatestCommits(dir: string, n: number): Commit[] {