MCPcopy Create free account
hub / github.com/decaporg/decap-cms / getGitClient

Function getGitClient

cypress/plugins/common.js:73–82  ·  view source on GitHub ↗
(repoDir)

Source from the content-addressed store, hash-verified

71};
72
73function getGitClient(repoDir) {
74 const env = Object.fromEntries(
75 Object.entries(process.env).filter(([key]) => !GUARDED_ENV.test(key)),
76 );
77 const git = simpleGit(repoDir, {
78 unsafe: { allowUnsafeSshCommand: true },
79 allowEnvironment: ['GIT_SSH_COMMAND', 'GIT_SSL_NO_VERIFY'],
80 }).env({ ...env, GIT_SSH_COMMAND, GIT_SSL_NO_VERIFY });
81 return git;
82}
83
84module.exports = {
85 getExpectationsFilename,

Callers 8

prepareTestGitLabRepoFunction · 0.85
resetOriginRepoFunction · 0.85
prepareTestBitBucketRepoFunction · 0.85
resetOriginRepoFunction · 0.85
initRepoFunction · 0.85
setupGitGatewayFunction · 0.85
prepareTestGitHubRepoFunction · 0.85
resetOriginRepoFunction · 0.85

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected