pub fn write_ref_encrypted( repo_path: &Path, ref_name: &str, hash: &str, encryption: &Arc<Mutex<EncryptionManager>>, ) -> Result<(), String>
Write an encrypted reference file