From: Daniel Barkalow Date: Thu, 22 May 2008 22:03:08 +0000 (-0400) Subject: Test that --reference actually suppresses fetching referenced objects X-Git-Tag: v1.5.6-rc0~5^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4ba776c231f27e69435d76bac98d033db859cd6f;p=git.git Test that --reference actually suppresses fetching referenced objects Signed-off-by: Daniel Barkalow Signed-off-by: Junio C Hamano --- diff --git a/t/t5700-clone-reference.sh b/t/t5700-clone-reference.sh index b6a54867b..58a97f1ed 100755 --- a/t/t5700-clone-reference.sh +++ b/t/t5700-clone-reference.sh @@ -8,6 +8,8 @@ test_description='test clone --reference' base_dir=`pwd` +U=$base_dir/UPLOAD_LOG + test_expect_success 'preparing first repository' \ 'test_create_repo A && cd A && echo first > file1 && @@ -50,8 +52,13 @@ diff expected current' cd "$base_dir" +rm -f $U + test_expect_success 'cloning with reference (no -l -s)' \ -'git clone --reference B file://`pwd`/A D' +'GIT_DEBUG_SEND_PACK=3 git clone --reference B file://`pwd`/A D 3>$U' + +test_expect_success 'fetched no objects' \ +'! grep "^want" $U' cd "$base_dir"