(git: Git, name: str, dst: Path, src: Path)
| 245 | |
| 246 | |
| 247 | def prepare_git(git: Git, name: str, dst: Path, src: Path): |
| 248 | # Remove all srcs and copy generated srcs from fuzz_generator |
| 249 | logging.info(f"Prepare git [{name}]") |
| 250 | |
| 251 | git.checkout(git.branch) |
| 252 | try: |
| 253 | git.delete_branch(name) |
| 254 | except RuntimeError: |
| 255 | pass |
| 256 | git.checkout(name, True) |
| 257 | |
| 258 | dst = dst.resolve() |
| 259 | shutil.rmtree(dst, ignore_errors=True) |
| 260 | shutil.copytree(src, dst) |
| 261 | |
| 262 | git.add(dst) |
| 263 | git.commit("Fuzzer") |
| 264 | |
| 265 | git.checkout(git.branch) |
| 266 | |
| 267 | |
| 268 | def get_changeables(git: Git, name: str): |
no test coverage detected