diff --git a/src/commands/commit.ts b/src/commands/commit.ts index 0c17c903..1e686021 100644 --- a/src/commands/commit.ts +++ b/src/commands/commit.ts @@ -83,7 +83,7 @@ ${chalk.grey('——————————————————')}` const remotes = await getGitRemotes(); // user isn't pushing, return early - if (config?.gitpush === false) + if (config?.OCO_GITPUSH === false) return if (!remotes.length) { diff --git a/src/commands/config.ts b/src/commands/config.ts index 2518ecf4..1265f0bc 100644 --- a/src/commands/config.ts +++ b/src/commands/config.ts @@ -143,7 +143,7 @@ export const configValidators = { [CONFIG_KEYS.OCO_GITPUSH](value: any) { validateConfig( - CONFIG_KEYS.gitpush, + CONFIG_KEYS.OCO_GITPUSH, typeof value === 'boolean', 'Must be true or false' );