Fixed rev-parse comparison to use short revisions