pub fn write_head_detached(layout: &RepoLayout, h: &Hash) -> RefResult<()>
Write HEAD as a detached hash.
HEAD
RefError::Io