From: Nguyễn Thái Ngọc Duy Date: Tue, 29 Dec 2015 12:10:42 GMT Subject: [PATCH 19/20] t5500: test for shallow depth excluding a ref Message-ID: <1451391043-28093-20-git-send-email-pclouds@gmail.com> In-Reply-To: <1451391043-28093-1-git-send-email-pclouds@gmail.com> Signed-off-by: Nguyễn Thái Ngọc Duy --- t/t5500-fetch-pack.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/t/t5500-fetch-pack.sh b/t/t5500-fetch-pack.sh index 338b46e..2259631 100755 --- a/t/t5500-fetch-pack.sh +++ b/t/t5500-fetch-pack.sh @@ -655,4 +655,22 @@ test_expect_success 'fetch shallow since ...' ' test_cmp expected actual ' +test_repo_expect_success 'shallow clone exclude tag two' ' + test_commit one && + test_commit two && + test_commit three && + git clone --not two "file://$(pwd)/." ../shallow12 && + git -C ../shallow12 log --pretty=tformat:%s HEAD >actual && + echo three >expected && + test_cmp expected actual +' + +test_expect_success 'fetch exclude tag one' ' + git -C shallow12 fetch --not one origin && + git -C shallow12 log --pretty=tformat:%s origin/master >actual && + echo three >expected && + echo two >>expected && + test_cmp expected actual +' + test_done -- 2.3.0.rc1.137.g477eb31