1 #!/bin/sh
3 test_description='pull options'
5 . ./test-lib.sh
7 D=`pwd`
9 test_expect_success 'setup' '
10 mkdir parent &&
11 (cd parent && git init &&
12 echo one >file && git add file &&
13 git commit -m one)
14 '
16 cd "$D"
18 test_expect_success 'git pull -q' '
19 mkdir clonedq &&
20 cd clonedq &&
21 git pull -q "$D/parent" >out 2>err &&
22 test ! -s out
23 '
25 cd "$D"
27 test_expect_success 'git pull' '
28 mkdir cloned &&
29 cd cloned &&
30 git pull "$D/parent" >out 2>err &&
31 test -s out
32 '
33 cd "$D"
35 test_expect_success 'git pull -v' '
36 mkdir clonedv &&
37 cd clonedv &&
38 git pull -v "$D/parent" >out 2>err &&
39 test -s out
40 '
42 cd "$D"
44 test_expect_success 'git pull -v -q' '
45 mkdir clonedvq &&
46 cd clonedvq &&
47 git pull -v -q "$D/parent" >out 2>err &&
48 test ! -s out
49 '
51 cd "$D"
53 test_expect_success 'git pull -q -v' '
54 mkdir clonedqv &&
55 cd clonedqv &&
56 git pull -q -v "$D/parent" >out 2>err &&
57 test -s out
58 '
60 test_done