From c331d4dd029c1f8c78d54e4d7517a4fe55840f14 Mon Sep 17 00:00:00 2001 From: Peter Cardenas <16930781+PeterCardenas@users.noreply.github.com> Date: Sun, 16 Mar 2025 12:22:10 -0700 Subject: [PATCH] fix: set commit.gpgSign to false to avoid errors --- src/commands/init.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/commands/init.ts b/src/commands/init.ts index b346679..4a7dd6c 100644 --- a/src/commands/init.ts +++ b/src/commands/init.ts @@ -6,7 +6,7 @@ import { existsSync, readFileSync } from 'node:fs' import { resolve } from 'node:path' import { bin_name } from '..' import { log } from '../log' -import { config, configDispatch, dynamicConfig } from '../utils' +import { config, configDispatch } from '../utils' export const init = async (directory: Command | string): Promise => { const cwd = process.cwd() @@ -45,11 +45,6 @@ export const init = async (directory: Command | string): Promise => { cwd: absoluteInitDirectory, }) - await configDispatch('git', { - args: ['init'], - cwd: absoluteInitDirectory, - }) - await configDispatch('git', { args: ['checkout', '--orphan', version], cwd: absoluteInitDirectory, @@ -60,6 +55,11 @@ export const init = async (directory: Command | string): Promise => { cwd: absoluteInitDirectory, }) + await configDispatch('git', { + args: ['config', 'commit.gpgsign', 'false'], + cwd: absoluteInitDirectory, + }) + log.info('Committing...') await configDispatch('git', {