MCPcopy Create free account
hub / github.com/isomorphic-git/isomorphic-git / getConfig

Function getConfig

src/api/getConfig.js:35–52  ·  view source on GitHub ↗
({ fs, dir, gitdir = join(dir, '.git'), path })

Source from the content-addressed store, hash-verified

33 *
34 */
35export async function getConfig({ fs, dir, gitdir = join(dir, '.git'), path }) {
36 try {
37 assertParameter('fs', fs)
38 assertParameter('gitdir', gitdir)
39 assertParameter('path', path)
40
41 const fsp = new FileSystem(fs)
42 const updatedGitdir = await discoverGitdir({ fsp, dotgit: gitdir })
43 return await _getConfig({
44 fs: fsp,
45 gitdir: updatedGitdir,
46 path,
47 })
48 } catch (err) {
49 err.caller = 'git.getConfig'
50 throw err
51 }
52}

Calls 4

joinFunction · 0.90
assertParameterFunction · 0.90
discoverGitdirFunction · 0.90
_getConfigFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…