]> git.ipfire.org Git - thirdparty/git.git/blame - t/t5518-fetch-exit-status.sh
path.c: don't call the match function without value in trie_find()
[thirdparty/git.git] / t / t5518-fetch-exit-status.sh
CommitLineData
efb98b44
DL
1#!/bin/sh
2#
3# Copyright (c) 2008 Dmitry V. Levin
4#
5
6test_description='fetch exit status test'
7
8. ./test-lib.sh
9
10test_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
a75d7b54 25test_expect_success 'non-fast-forward fetch' '
efb98b44
DL
26
27 test_must_fail git fetch . master:side
28
29'
30
31test_expect_success 'forced update' '
32
33 git fetch . +master:side
34
35'
36
37test_done