(config: EvoGitConfig)
| 68 | |
| 69 | |
| 70 | def delete_remote_notes(config: EvoGitConfig) -> None: |
| 71 | fetch_notes_from_remote(config, async_fetch=False) |
| 72 | remote_notes_namespaces = list_remote_notes_namespaces(config) |
| 73 | print(f"Delete the following remote notes: {remote_notes_namespaces}") |
| 74 | |
| 75 | # delete all remote notes |
| 76 | for remote_notes_namespace in remote_notes_namespaces: |
| 77 | subprocess.run( |
| 78 | [ |
| 79 | "git", |
| 80 | "push", |
| 81 | "-q", |
| 82 | "origin", |
| 83 | "-d", |
| 84 | f"refs/notes/{remote_notes_namespace}", |
| 85 | ], |
| 86 | cwd=config.git_dir, |
| 87 | check=True, |
| 88 | ) |
| 89 | |
| 90 | |
| 91 | def init_git_repo(config: EvoGitConfig) -> None: |
no test coverage detected