diff --git a/dist/index.js b/dist/index.js index a669b16..2bd8186 100644 --- a/dist/index.js +++ b/dist/index.js @@ -25843,9 +25843,9 @@ async function main(sourceRepo, targetRepo, dryRun, tokenForTargetRepo) { // OK, that's it - we've processed all the source commits, and we've inserted all the necessary target commits. // We can just `git push` to the target repo now. // - // But I'm gonna do a bunch more dry-run testing before I do that! + // Note that it must be a `-f`, because we are literally rewriting history. if (!dryRun) { - (0, child_process_1.execSync)(`git push https://unused-username:${tokenForTargetRepo}@${targetRepo.domain}/${targetRepo.owner}/${targetRepo.name}`, { + (0, child_process_1.execSync)(`git push -f https://unused-username:${tokenForTargetRepo}@${targetRepo.domain}/${targetRepo.owner}/${targetRepo.name}`, { cwd: TARGET_DIR }); // TODO - it'd be nice - before this `git push` is probably best - to add a `README.md` comment acknowledging diff --git a/node_modules/@vercel/ncc/dist/ncc/cli.js.cache b/node_modules/@vercel/ncc/dist/ncc/cli.js.cache index 09458ad..88e89c1 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 cd987c3..b1dd2b6 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 1341417..6cedc94 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 30b5349..a21db8b 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 b1bcb68..c964c4f 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/main.ts b/src/main.ts index e153681..5c88f09 100644 --- a/src/main.ts +++ b/src/main.ts @@ -116,9 +116,9 @@ export async function main(sourceRepo: Repo, targetRepo: Repo, dryRun: boolean, // OK, that's it - we've processed all the source commits, and we've inserted all the necessary target commits. // We can just `git push` to the target repo now. // - // But I'm gonna do a bunch more dry-run testing before I do that! + // Note that it must be a `-f`, because we are literally rewriting history. if (!dryRun) { - execSync(`git push https://unused-username:${tokenForTargetRepo}@${targetRepo.domain}/${targetRepo.owner}/${targetRepo.name}`, { + execSync(`git push -f https://unused-username:${tokenForTargetRepo}@${targetRepo.domain}/${targetRepo.owner}/${targetRepo.name}`, { cwd: TARGET_DIR }) // TODO - it'd be nice - before this `git push` is probably best - to add a `README.md` comment acknowledging