]> git.ipfire.org Git - thirdparty/git.git/blame - t/t2009-checkout-statinfo.sh
l10n: fr v2.23.0 round 2
[thirdparty/git.git] / t / t2009-checkout-statinfo.sh
CommitLineData
75336878
DB
1#!/bin/sh
2
3test_description='checkout should leave clean stat info'
4
5. ./test-lib.sh
6
7test_expect_success 'setup' '
8
9 echo hello >world &&
10 git update-index --add world &&
11 git commit -m initial &&
12 git branch side &&
13 echo goodbye >world &&
14 git update-index --add world &&
15 git commit -m second
16
17'
18
19test_expect_success 'branch switching' '
20
21 git reset --hard &&
22 test "$(git diff-files --raw)" = "" &&
23
24 git checkout master &&
25 test "$(git diff-files --raw)" = "" &&
26
27 git checkout side &&
28 test "$(git diff-files --raw)" = "" &&
29
30 git checkout master &&
31 test "$(git diff-files --raw)" = ""
32
33'
34
35test_expect_success 'path checkout' '
36
37 git reset --hard &&
38 test "$(git diff-files --raw)" = "" &&
39
40 git checkout master world &&
41 test "$(git diff-files --raw)" = "" &&
42
43 git checkout side world &&
44 test "$(git diff-files --raw)" = "" &&
45
46 git checkout master world &&
47 test "$(git diff-files --raw)" = ""
48
49'
50
51test_done
52