3 # Copyright (c) 2008 Dmitry V. Levin
6 test_description='fetch exit status test'
10 test_expect_success setup '
14 git commit -m initial &&
16 git checkout -b side &&
18 git commit -a -m side &&
20 git checkout master &&
25 test_expect_success 'non fast forward fetch' '
27 test_must_fail git fetch . master:side
31 test_expect_success 'forced update' '
33 git fetch . +master:side