]> git.ipfire.org Git - thirdparty/git.git/blob - t/t5521-pull-options.sh
Teach/Fix pull/fetch -q/-v options
[thirdparty/git.git] / t / t5521-pull-options.sh
1 #!/bin/sh
2
3 test_description='pull options'
4
5 . ./test-lib.sh
6
7 D=`pwd`
8
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 '
15
16 cd "$D"
17
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 '
24
25 cd "$D"
26
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"
34
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 '
41
42 cd "$D"
43
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 '
50
51 cd "$D"
52
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 '
59
60 test_done