tg-summary.sh: Take base revision from for-each-ref output