MCPcopy Create free account
hub / github.com/FastLED/FastLED / _init_repo

Function _init_repo

ci/tests/test_clean_worktrees.py:37–43  ·  view source on GitHub ↗
(root: Path)

Source from the content-addressed store, hash-verified

35
36
37def _init_repo(root: Path) -> None:
38 _git(["init", "--initial-branch=master"], root)
39 _git(["config", "user.email", "test@example.com"], root)
40 _git(["config", "user.name", "Test"], root)
41 (root / "README.md").write_text("hi\n")
42 _git(["add", "README.md"], root)
43 _git(["commit", "-m", "init"], root)
44
45
46class TestClassifyWorktree(unittest.TestCase):

Calls 1

_gitFunction · 0.85

Tested by

no test coverage detected