Add a fetch refspec (str) to the remote
(self, name: str, refspec: str)
| 517 | check_error(err) |
| 518 | |
| 519 | def add_fetch(self, name: str, refspec: str) -> None: |
| 520 | """Add a fetch refspec (str) to the remote""" |
| 521 | |
| 522 | err = C.git_remote_add_fetch( |
| 523 | self._repo._repo, to_bytes(name), to_bytes(refspec) |
| 524 | ) |
| 525 | check_error(err) |
| 526 | |
| 527 | def add_push(self, name: str, refspec: str) -> None: |
| 528 | """Add a push refspec (str) to the remote""" |