]> git.ipfire.org Git - thirdparty/git.git/blame - t/t7506-status-submodule.sh
Merge branch 'bc/mailsplit-cr-at-eol'
[thirdparty/git.git] / t / t7506-status-submodule.sh
CommitLineData
27bfd950
PY
1#!/bin/sh
2
47a528ad 3test_description='git status for submodule'
27bfd950
PY
4
5. ./test-lib.sh
6
7test_expect_success 'setup' '
8 test_create_repo sub
9 cd sub &&
10 : >bar &&
11 git add bar &&
12 git commit -m " Add bar" &&
13 cd .. &&
14 git add sub &&
15 git commit -m "Add submodule sub"
16'
17
18test_expect_success 'status clean' '
19 git status |
20 grep "nothing to commit"
21'
22test_expect_success 'status -a clean' '
23 git status -a |
24 grep "nothing to commit"
25'
26test_expect_success 'rm submodule contents' '
27 rm -rf sub/* sub/.git
28'
29test_expect_success 'status clean (empty submodule dir)' '
30 git status |
31 grep "nothing to commit"
32'
050288d5 33test_expect_success 'status -a clean (empty submodule dir)' '
27bfd950
PY
34 git status -a |
35 grep "nothing to commit"
36'
37
38test_done