]> git.ipfire.org Git - thirdparty/git.git/blob - t/t5518-fetch-exit-status.sh
Merge branch 'js/t0001-case-insensitive' into maint
[thirdparty/git.git] / t / t5518-fetch-exit-status.sh
1 #!/bin/sh
2 #
3 # Copyright (c) 2008 Dmitry V. Levin
4 #
5
6 test_description='fetch exit status test'
7
8 . ./test-lib.sh
9
10 test_expect_success setup '
11
12 >file &&
13 git add file &&
14 git commit -m initial &&
15
16 git checkout -b side &&
17 echo side >file &&
18 git commit -a -m side &&
19
20 git checkout master &&
21 echo next >file &&
22 git commit -a -m next
23 '
24
25 test_expect_success 'non-fast-forward fetch' '
26
27 test_must_fail git fetch . master:side
28
29 '
30
31 test_expect_success 'forced update' '
32
33 git fetch . +master:side
34
35 '
36
37 test_done