pub fn write_ref(repo: &Repo, ref_name: &str, hash: &Hash) -> Result<()>
write a ref (create or update)
ref_name can contain slashes for hierarchical refs like “x86_64/pkg/foo/1.0/outputs/bin”