On Thu, Nov 15, 2018 at 11:59:56PM -0800, Elijah Newren wrote:
> diff --git a/t/t9350-fast-export.sh b/t/t9350-fast-export.sh
> index d7d73061d0..5690fe2810 100755
> --- a/t/t9350-fast-export.sh
> +++ b/t/t9350-fast-export.sh
> @@ -77,6 +77,23 @@ test_expect_success 'fast-export
> --reference-excluded-parents master~2..master'
> test $MASTER = $(git rev-parse --verify refs/heads/rewrite))
> '
>
> +test_expect_success 'fast-export --show-original-ids' '
> +
> + git fast-export --show-original-ids master >output &&
> + grep ^original-oid output| sed -e s/^original-oid.// | sort >actual &&
Nit: 'sed' can do what this 'grep' does:
sed -n -e s/^original-oid.//p output | sort >actual &&
thus sparing a process.
> + git rev-list --objects master muss >objects-and-names &&
> + awk "{print \$1}" objects-and-names | sort >commits-trees-blobs &&
> + comm -23 actual commits-trees-blobs >unfound &&
> + test_must_be_empty unfound
> +'
> +
> +test_expect_success 'fast-export --show-original-ids | git fast-import' '
> +
> + git fast-export --show-original-ids master muss | git fast-import
> --quiet &&
> + test $MASTER = $(git rev-parse --verify refs/heads/master) &&
> + test $MUSS = $(git rev-parse --verify refs/tags/muss)
> +'
> +
> test_expect_success 'iso-8859-1' '
>
> git config i18n.commitencoding ISO8859-1 &&
> --
> 2.19.1.1063.g1796373474.dirty
>