mirror of
https://github.com/stablyai/orca.git
synced 2026-10-21 08:03:33 +00:00
24 lines
516 B
TypeScript
24 lines
516 B
TypeScript
import { execFileSync } from 'node:child_process'
|
|
|
|
export function initializeNodeServerVerifierGitWorkspace(gitPath: string): void {
|
|
execFileSync('git', ['init', gitPath], { stdio: 'ignore' })
|
|
execFileSync(
|
|
'git',
|
|
[
|
|
'-C',
|
|
gitPath,
|
|
'-c',
|
|
'user.name=Orca Verifier',
|
|
'-c',
|
|
'user.email=verifier@orca.invalid',
|
|
'-c',
|
|
'commit.gpgSign=false',
|
|
'commit',
|
|
'--allow-empty',
|
|
'-m',
|
|
'Initial verifier commit'
|
|
],
|
|
{ stdio: 'ignore' }
|
|
)
|
|
}
|