(self)
| 571 | # The main pieces |
| 572 | |
| 573 | def fetch(self) -> None: |
| 574 | # TODO: Potentially we could narrow this refspec down to only OUR gh |
| 575 | # branches. However, this will interact poorly with cross-author |
| 576 | # so it needs to be thought more carefully |
| 577 | self.sh.git( |
| 578 | "fetch", |
| 579 | "--prune", |
| 580 | self.remote_name, |
| 581 | f"+refs/heads/*:refs/remotes/{self.remote_name}/*", |
| 582 | ) |
| 583 | |
| 584 | def parse_revs(self) -> List[ghstack.git.CommitHeader]: |
| 585 | # There are two distinct usage patterns: |