in focus/operations/src/pull.rs [29:41]
fn validation_ref_existence(app: Arc<App>, repo_path: &Path) -> Result<()> {
let focus_sync_ref = git_helper::parse_ref(app.clone(), repo_path, FOCUS_SYNC_REF);
let prefetch_default_ref = git_helper::parse_ref(app, repo_path, PREFETCH_DEFAULT_REF);
if focus_sync_ref.is_err() || focus_sync_ref.unwrap().is_empty() {
bail!("Could not find focus sync ref or ref is empty");
}
if prefetch_default_ref.is_err() || prefetch_default_ref.unwrap().is_empty() {
bail!("Could not find prefetch ref or ref is empty");
}
Ok(())
}