pub fn ref_exists(repo: &Path, ref_name: &str) -> Result<bool, SyncError>
Returns whether a ref exists in the repository.