(self, ref: str)
| 134 | return Path(git_dir, 'shallow').exists() |
| 135 | |
| 136 | def ref_exists(self, ref: str) -> bool: |
| 137 | try: |
| 138 | self.git(['show-branch', ref]) |
| 139 | except subprocess.CalledProcessError: |
| 140 | return False |
| 141 | return True |
| 142 | |
| 143 | def update(self, ref: str) -> None: |
| 144 | tc_build.utils.print_header(f"Updating {self._pretty_name}") |