mirror of
https://github.com/zen-browser/surfer.git
synced 2025-07-07 08:55:33 +02:00
fix: set commit.gpgSign to false to avoid errors
This commit is contained in:
parent
a3b5864543
commit
c331d4dd02
1 changed files with 6 additions and 6 deletions
|
@ -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<void> => {
|
||||
const cwd = process.cwd()
|
||||
|
@ -45,11 +45,6 @@ export const init = async (directory: Command | string): Promise<void> => {
|
|||
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<void> => {
|
|||
cwd: absoluteInitDirectory,
|
||||
})
|
||||
|
||||
await configDispatch('git', {
|
||||
args: ['config', 'commit.gpgsign', 'false'],
|
||||
cwd: absoluteInitDirectory,
|
||||
})
|
||||
|
||||
log.info('Committing...')
|
||||
|
||||
await configDispatch('git', {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue