Another bugfix to clone
This commit is contained in:
parent
9735b49e43
commit
f76b687144
5
dist/index.js
vendored
5
dist/index.js
vendored
@ -25659,7 +25659,10 @@ const child_process_1 = __nccwpck_require__(5317);
|
|||||||
const fs_1 = __nccwpck_require__(9896);
|
const fs_1 = __nccwpck_require__(9896);
|
||||||
const date_fns_1 = __nccwpck_require__(4367);
|
const date_fns_1 = __nccwpck_require__(4367);
|
||||||
function gitClone(dir, url) {
|
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 `<dir>/<repo_name>`. 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) {
|
function getNLatestCommits(dir, n) {
|
||||||
const logOutput = (0, child_process_1.execSync)(
|
const logOutput = (0, child_process_1.execSync)(
|
||||||
|
BIN
node_modules/@vercel/ncc/dist/ncc/cli.js.cache
generated
vendored
BIN
node_modules/@vercel/ncc/dist/ncc/cli.js.cache
generated
vendored
Binary file not shown.
BIN
node_modules/@vercel/ncc/dist/ncc/index.js.cache
generated
vendored
BIN
node_modules/@vercel/ncc/dist/ncc/index.js.cache
generated
vendored
Binary file not shown.
BIN
node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js.cache
generated
vendored
BIN
node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js.cache
generated
vendored
Binary file not shown.
BIN
node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js.cache
generated
vendored
BIN
node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js.cache
generated
vendored
Binary file not shown.
BIN
node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache
generated
vendored
BIN
node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache
generated
vendored
Binary file not shown.
@ -6,7 +6,10 @@ import { mkdirSync } from "fs";
|
|||||||
import { format } from 'date-fns';
|
import { format } from 'date-fns';
|
||||||
|
|
||||||
export function gitClone(dir: string, url: string) {
|
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 `<dir>/<repo_name>`. 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[] {
|
export function getNLatestCommits(dir: string, n: number): Commit[] {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user