(git_path, config, config_file=C.CONFIG_FILE)
| 129 | |
| 130 | |
| 131 | def add_config_to_repo(git_path, config, config_file=C.CONFIG_FILE): |
| 132 | write_config(git_path, config, config_file=config_file) |
| 133 | cmd_output('git', 'add', config_file, cwd=git_path) |
| 134 | git_commit(msg=add_config_to_repo.__name__, cwd=git_path) |
| 135 | return git_path |
| 136 | |
| 137 | |
| 138 | def remove_config_from_repo(git_path, config_file=C.CONFIG_FILE): |