MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / getNonInteractiveGitEnv

Function getNonInteractiveGitEnv

desktop/project-git/git-runner.ts:30–40  ·  view source on GitHub ↗
(baseEnv?: NodeJS.ProcessEnv)

Source from the content-addressed store, hash-verified

28}
29
30export function getNonInteractiveGitEnv(baseEnv?: NodeJS.ProcessEnv) {
31 return {
32 ...process.env,
33 ...baseEnv,
34 GIT_TERMINAL_PROMPT: '0',
35 GCM_INTERACTIVE: 'Never',
36 GIT_ASKPASS: 'echo',
37 SSH_ASKPASS: 'echo',
38 GIT_SSH_COMMAND: 'ssh -oBatchMode=yes -oConnectTimeout=5',
39 }
40}
41
42export function formatGitCommandError(error: unknown) {
43 if (!(error instanceof Error)) {

Callers 3

commitProjectChangesFunction · 0.90
runGitSyncFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected