diff --git a/packages/core/src/generateNewVoteFolder.ts b/packages/core/src/generateNewVoteFolder.ts index c07711b..532203c 100644 --- a/packages/core/src/generateNewVoteFolder.ts +++ b/packages/core/src/generateNewVoteFolder.ts @@ -59,6 +59,7 @@ interface Options { commitMessage?: string; commitAuthor?: string; gpgSign?: boolean | string; + pushToRemote?: boolean }; } @@ -236,6 +237,7 @@ export default async function generateNewVoteFolder(options: Options) { gpgSign, commitAuthor, commitMessage, + pushToRemote = true, doNotCleanTempFiles, } = gitOptions; const spawnArgs = { cwd: directory }; @@ -264,7 +266,7 @@ export default async function generateNewVoteFolder(options: Options) { { spawnArgs } ); - if (repo) { + if (repo && pushToRemote) { await runChildProcessAsync(GIT_BIN, ["push", repo, `HEAD:${branch}`], { spawnArgs, });