Do you want to return @repo.getShortHead() if the pattern does not match?