From: Eric Sunshine Date: Sun, 05 Jun 2016 05:09:44 GMT Subject: Re: [PATCH 23/26] t5500, t5539: tests for shallow depth excluding a ref Message-ID: In-Reply-To: <1460552110-5554-24-git-send-email-pclouds@gmail.com> On Wed, Apr 13, 2016 at 8:55 AM, Nguyễn Thái Ngọc Duy wrote: > Signed-off-by: Nguyễn Thái Ngọc Duy > --- > 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 EOF or: test_write_lines three two >expected && but not worth a re-roll. > + 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 && Likewise. > + test_cmp expected actual > +'