@matheusbsbs / matheus-bagliano / commits / 4ba776c231
Fork 0

Test that --reference actually suppresses fetching referenced objects

Signed-off-by: Daniel Barkalow <barkalow@iabervon.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Daniel Barkalow committed May 22, 2008 at 18:03 UTC 4ba776c231f27e69435d76bac98d033db859cd6f
1 file changed +8 -1
t/t5700-clone-reference.sh
+8 -1
@@ -8,6 +8,8 @@ test_description='test clone --reference'
8
9 base_dir=`pwd`
10
11 +U=$base_dir/UPLOAD_LOG
12 +
13 test_expect_success 'preparing first repository' \
14 'test_create_repo A && cd A &&
15 echo first > file1 &&
@@ -50,8 +52,13 @@ diff expected current'
52
53 cd "$base_dir"
54
55 +rm -f $U
56 +
57 test_expect_success 'cloning with reference (no -l -s)' \
54 -'git clone --reference B file://`pwd`/A D'
58 +'GIT_DEBUG_SEND_PACK=3 git clone --reference B file://`pwd`/A D 3>$U'
59 +
60 +test_expect_success 'fetched no objects' \
61 +'! grep "^want" $U'
62
63 cd "$base_dir"
64