3 test_description
='pull options'
7 test_expect_success
'setup' '
9 (cd parent && git init &&
10 echo one >file && git add file &&
14 test_expect_success
'git pull -q' '
16 (cd clonedq && git init &&
17 git pull -q "../parent" >out 2>err &&
22 test_expect_success
'git pull' '
24 (cd cloned && git init &&
25 git pull "../parent" >out 2>err &&
30 test_expect_success
'git pull -v' '
32 (cd clonedv && git init &&
33 git pull -v "../parent" >out 2>err &&
38 test_expect_success
'git pull -v -q' '
40 (cd clonedvq && git init &&
41 git pull -v -q "../parent" >out 2>err &&
46 test_expect_success
'git pull -q -v' '
48 (cd clonedqv && git init &&
49 git pull -q -v "../parent" >out 2>err &&
54 test_expect_success
'git pull --force' '
55 mkdir clonedoldstyle &&
56 (cd clonedoldstyle && git init &&
57 cat >>.git/config <<-\EOF &&
60 fetch = refs/heads/master:refs/heads/mirror
63 fetch = refs/heads/master:refs/heads/origin
66 merge = refs/heads/master
70 git branch -f origin &&
71 git pull --all --force
75 test_expect_success
'git pull --all' '
77 (cd clonedmulti && git init &&
78 cat >>.git/config <<-\EOF &&
81 fetch = refs/heads/*:refs/remotes/one/*
84 fetch = refs/heads/*:refs/remotes/two/*
87 merge = refs/heads/master