(tempdir_factory, repo_source)
| 43 | |
| 44 | |
| 45 | def make_repo(tempdir_factory, repo_source): |
| 46 | path = git_dir(tempdir_factory) |
| 47 | copy_tree_to_path(get_resource_path(repo_source), path) |
| 48 | cmd_output('git', 'add', '.', cwd=path) |
| 49 | git_commit(msg=make_repo.__name__, cwd=path) |
| 50 | return path |
| 51 | |
| 52 | |
| 53 | @contextlib.contextmanager |