MCPcopy Index your code
hub / github.com/coderoad/coderoad-vscode / validateGitConfig

Function validateGitConfig

src/services/git/index.ts:216–227  ·  view source on GitHub ↗
(target: string)

Source from the content-addressed store, hash-verified

214}
215
216export async function validateGitConfig(target: string): Promise<boolean> {
217 try {
218 // returns a list of commit hashes
219 const { stdout, stderr } = await exec({ command: `git config ${target}` })
220 if (stderr) {
221 return false
222 }
223 return !!stdout.length
224 } catch (error) {
225 return false
226 }
227}

Callers 1

onValidateSetupFunction · 0.90

Calls 1

execFunction · 0.90

Tested by

no test coverage detected