rev-parse: fix parent shorthands with --symbolic