From: Junio C Hamano Date: Mon, 08 Feb 2016 21:24:20 GMT Subject: Re: [PATCH v2 18/25] t5500, t5539: tests for shallow depth since a specific date Message-ID: In-Reply-To: <1454576641-29615-19-git-send-email-pclouds@gmail.com> Nguyễn Thái Ngọc Duy writes: > + cd shallow-since && > + GIT_COMMITTER_DATE="100000000 +0700" git commit --allow-empty -m one && > + GIT_COMMITTER_DATE="200000000 +0700" git commit --allow-empty -m two && > + GIT_COMMITTER_DATE="300000000 +0700" git commit --allow-empty -m three && Didn't --date="@10000000 +0700" work? Not a complaint but genuinely curious. > + git clone --shallow-since "300000000 +0700" "file://$(pwd)/." ../shallow11 && Are we required to add TZ to --shallow-since, or we merely tolerate if there is one (I am hoping that it is the latter)? > + git -C ../shallow11 log --pretty=tformat:%s HEAD >actual && > + echo three >expected && > + test_cmp expected actual > + ) > +' > + > +test_expect_success 'fetch shallow since ...' ' > + git -C shallow11 fetch --shallow-since "200000000 +0700" origin && > + git -C shallow11 log --pretty=tformat:%s origin/master >actual && > + echo three >expected && > + echo two >>expected && test_write_lines perhaps? > + test_cmp expected actual > +'