MCPcopy Create free account
hub / github.com/toplenboren/simple-git-hooks / initializeGitRepository

Function initializeGitRepository

simple-git-hooks.test.js:834–841  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

832 const GIT_USER_EMAIL = "github-actions@github.com";
833
834 const initializeGitRepository = (path) => {
835 execSync(
836 `git init \
837 && git config user.name ${GIT_USER_NAME} \
838 && git config user.email ${GIT_USER_EMAIL}`,
839 { cwd: path }
840 );
841 };
842
843 const tryToPerformTestCommit = (path, env = process.env) => {
844 try {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected