commit --amend: copy notes to the new commit
[git/ericb.git] / t / t7506-status-submodule.sh
blob3ca17abad1847704f222f1cfe744463debfc96ff
1 #!/bin/sh
3 test_description='git status for submodule'
5 . ./test-lib.sh
7 test_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"
18 test_expect_success 'status clean' '
19 git status |
20 grep "nothing to commit"
22 test_expect_success 'commit --dry-run -a clean' '
23 git commit --dry-run -a |
24 grep "nothing to commit"
26 test_expect_success 'rm submodule contents' '
27 rm -rf sub/* sub/.git
29 test_expect_success 'status clean (empty submodule dir)' '
30 git status |
31 grep "nothing to commit"
33 test_expect_success 'status -a clean (empty submodule dir)' '
34 git commit --dry-run -a |
35 grep "nothing to commit"
38 test_done