pub fn write_ref( repo_path: &Path, ref_name: &str, hash: &str, ) -> Result<(), String>
Write a reference file