MCPcopy Create free account
hub / github.com/Samsung/UTopia / __init__

Method __init__

helper/git.py:8–18  ·  view source on GitHub ↗
(self, root_dir: Path)

Source from the content-addressed store, hash-verified

6
7class Git:
8 def __init__(self, root_dir: Path):
9 self.branch = "autofuzz_base"
10 self.root_dir = root_dir.resolve()
11
12 self.config("user.name", "autofuzz")
13 self.config("user.email", "autofuzz@autofuzz.com")
14 self.checkout(self.branch)
15
16 adds, mods = self.diff()
17 if adds or mods:
18 raise RuntimeError("Modified files found [" + self.branch + "]")
19
20 def checkout(self, branch: str, create: bool = False):
21 cmd = ["git", "checkout", branch]

Callers

nothing calls this directly

Calls 4

configMethod · 0.95
checkoutMethod · 0.95
diffMethod · 0.95
resolveMethod · 0.80

Tested by

no test coverage detected