3 # Copyright (c) 2008 Dmitry V. Levin
6 test_description
='fetch exit status test'
8 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
=main
9 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
13 test_expect_success setup
'
17 git commit -m initial &&
19 git checkout -b side &&
21 git commit -a -m side &&
28 test_expect_success
'non-fast-forward fetch' '
30 test_must_fail git fetch . main:side
34 test_expect_success
'forced update' '
36 git fetch . +main:side