user_ident_sufficiently_given(): refactor the logic to be usable from elsewhere
[gitweb.git] / t / t7506-status-submodule.sh
index 8987c9eb70b977fa897967749ca096646009b00a..3ca17abad1847704f222f1cfe744463debfc96ff 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-test_description='git-status for submodule'
+test_description='git status for submodule'
 
 . ./test-lib.sh
 
@@ -19,8 +19,8 @@ test_expect_success 'status clean' '
        git status |
        grep "nothing to commit"
 '
-test_expect_success 'status -a clean' '
-       git status -a |
+test_expect_success 'commit --dry-run -a clean' '
+       git commit --dry-run -a |
        grep "nothing to commit"
 '
 test_expect_success 'rm submodule contents' '
@@ -30,8 +30,8 @@ test_expect_success 'status clean (empty submodule dir)' '
        git status |
        grep "nothing to commit"
 '
-test_expect_failure 'status -a clean (empty submodule dir)' '
-       git status -a |
+test_expect_success 'status -a clean (empty submodule dir)' '
+       git commit --dry-run -a |
        grep "nothing to commit"
 '