operations: Use repository abstraction to resolve refs
The operations service currently uses an open-coded parseRevision
function, which uses git-rev-parse(1) to resolve a reference. As we have
since grown ResoveRefish
in our repository abstraction which does the
same, let's use that one and remove the open-coded variant.