Skip to main content

fetch_branch

Function fetch_branch 

Source
pub async fn fetch_branch(repo_dir: &Path, branch: &str) -> Result<()>
Expand description

Fetch a branch from origin to update the remote tracking ref.

Used between pipeline layers so that new worktrees (which branch from origin/<branch>) start from post-merge state.