Re: [PATCH 23/26] t5500, t5539: tests for shallow depth excluding a ref
On Wed, Apr 13, 2016 at 8:55 AM, Nguyễn Thái Ngọc Duy <pclouds@gmail.com> wrote:
Show 9 quoted lines
> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
> ---
> diff --git a/t/t5500-fetch-pack.sh b/t/t5500-fetch-pack.sh
> @@ -661,4 +661,26 @@ test_expect_success 'fetch shallow since ...' '
> +test_expect_success 'fetch exclude tag one' '
> + git -C shallow12 fetch --shallow-exclude one origin &&
> + git -C shallow12 log --pretty=tformat:%s origin/master >actual &&
> + echo three >expected &&
> + echo two >>expected &&
Perhaps:
echo >expected <<-\EOF &&
three
two
EOFor:
test_write_lines three two >expected &&
but not worth a re-roll.
Show 9 quoted lines
> + test_cmp expected actual
> +'
> diff --git a/t/t5539-fetch-http-shallow.sh b/t/t5539-fetch-http-shallow.sh
> @@ -98,6 +98,28 @@ test_expect_success 'fetch shallow since ...' '
> +test_expect_success 'fetch exclude tag one' '
> + git -C shallow12 fetch --shallow-exclude one origin &&
> + git -C shallow12 log --pretty=tformat:%s origin/master >actual &&
> + echo three >expected &&
> + echo two >>expected &&
> + test_cmp expected actual
> +'