Add GitRepository::oidToQString and replace code copies