diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-08-15 02:27:39 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-08-22 12:18:00 -0700 |
commit | 9e4b7ab652561e1807702fe5288e04b8873fc437 (patch) | |
tree | 468f28135714375fa664bfebf4a0fa0f71582d54 /t/t7506-status-submodule.sh | |
parent | 173e6c8852be3c543689f8613ddf3fdafd9ca7b9 (diff) | |
download | git-9e4b7ab652561e1807702fe5288e04b8873fc437.tar.gz |
git status: not "commit --dry-run" anymore
This removes tentative "git stat" and make it take over "git status".
There are some tests that expect "git status" to exit with non-zero status
when there is something staged. Some tests expect "git status path..." to
show the status for a partial commit.
For these, replace "git status" with "git commit --dry-run". For the
ones that do not attempt a dry-run of a partial commit that check the
output from the command, check the output from "git status" as well, as
they should be identical.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7506-status-submodule.sh')
-rwxr-xr-x | t/t7506-status-submodule.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/t/t7506-status-submodule.sh b/t/t7506-status-submodule.sh index d9a08aac56..3ca17abad1 100755 --- a/t/t7506-status-submodule.sh +++ b/t/t7506-status-submodule.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' ' @@ -31,7 +31,7 @@ test_expect_success 'status clean (empty submodule dir)' ' grep "nothing to commit" ' test_expect_success 'status -a clean (empty submodule dir)' ' - git status -a | + git commit --dry-run -a | grep "nothing to commit" ' |