Skip to content

Commit

Permalink
Test that --reference actually suppresses fetching referenced objects
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Barkalow <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
iabervon authored and gitster committed May 23, 2008
1 parent fdabc24 commit 4ba776c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion t/t5700-clone-reference.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down Expand Up @@ -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"

Expand Down

0 comments on commit 4ba776c

Please sign in to comment.