Fetch the notes from the remote repository.
(
config: EvoGitConfig, async_fetch: bool = True
)
| 857 | |
| 858 | |
| 859 | def fetch_notes_from_remote( |
| 860 | config: EvoGitConfig, async_fetch: bool = True |
| 861 | ) -> subprocess.Popen | None: |
| 862 | """Fetch the notes from the remote repository.""" |
| 863 | cmd = ["git", "fetch", "-q", "origin", "refs/notes/*:refs/notes/*"] |
| 864 | |
| 865 | if async_fetch: |
| 866 | return subprocess.Popen( |
| 867 | cmd, |
| 868 | cwd=config.git_dir, |
| 869 | stdout=subprocess.DEVNULL, |
| 870 | stderr=subprocess.DEVNULL, |
| 871 | ) |
| 872 | else: |
| 873 | subprocess.run( |
| 874 | cmd, |
| 875 | cwd=config.git_dir, |
| 876 | check=True, |
| 877 | stdout=subprocess.DEVNULL, |
| 878 | stderr=subprocess.DEVNULL, |
| 879 | ) |
| 880 | |
| 881 | |
| 882 | def diff_view( |
no outgoing calls
no test coverage detected