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

Function initializeGitRepository

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

Source from the content-addressed store, hash-verified

652 const GIT_USER_EMAIL = "github-actions@github.com";
653
654 const initializeGitRepository = (path) => {
655 execSync(
656 `git init \
657 && git config user.name ${GIT_USER_NAME} \
658 && git config user.email ${GIT_USER_EMAIL}`,
659 { cwd: path }
660 );
661 };
662
663 const tryToPerformTestCommit = (path, env = process.env) => {
664 try {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…