Fetch from a remote (defaults to "origin").
(repo_path: &Path, remote: Option<&str>)
| 387 | |
| 388 | /// Fetch from a remote (defaults to "origin"). |
| 389 | pub async fn fetch(repo_path: &Path, remote: Option<&str>) -> Result<()> { |
| 390 | let remote = remote.unwrap_or("origin"); |
| 391 | run_git(repo_path, &["fetch", remote]).await?; |
| 392 | Ok(()) |
| 393 | } |
| 394 | |
| 395 | /// Fetch a specific branch from a remote. |
| 396 | pub async fn fetch_branch(repo_path: &Path, remote: &str, branch: &str) -> Result<()> { |
no test coverage detected