diff options
author | Brandon Casey <drafnel@gmail.com> | 2011-05-26 13:43:20 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-05-29 13:00:06 -0700 |
commit | 95b9f9f927a7d9ea2bc2849b6ae624335e98362f (patch) | |
tree | dc6bfd3c549dfef2370f48160fbe974a13447216 /t/t7508-status.sh | |
parent | 7c9f7038e923e6eb135b27c6fca9a010b034bc27 (diff) | |
download | git-95b9f9f927a7d9ea2bc2849b6ae624335e98362f.tar.gz |
t7508: demonstrate status's failure to use --porcelain format with -z
When 'git status' is supplied the -z switch, and no output format has been
selected, it is supposed to use the --porcelain format. This does not
happen. Instead, the standard long format is used. Add a test to
demonstrate this failure.
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7508-status.sh')
-rwxr-xr-x | t/t7508-status.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t7508-status.sh b/t/t7508-status.sh index 1173dbb36e..9bc9817f28 100755 --- a/t/t7508-status.sh +++ b/t/t7508-status.sh @@ -364,6 +364,13 @@ test_expect_success 'status submodule summary (clean submodule)' ' test_cmp expect output ' +test_expect_failure 'status -z implies porcelain' ' + git status --porcelain | + perl -pe "s/\012/\000/g" >expect && + git status -z >output && + test_cmp expect output +' + cat >expect <<EOF # On branch master # Changes to be committed: |