From: Brandon Casey <drafnel@xxxxxxxxx> 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@xxxxxxxxxxxxxxx> --- 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 cd6e2c5..9601258 100755 --- a/t/t7508-status.sh +++ b/t/t7508-status.sh @@ -533,6 +533,13 @@ test_expect_success 'status --porcelain ignores -b' ' ' +test_expect_failure 'status -z implies porcelain' ' + echo " M dir1/modifiedQA dir2/addedQ?? dir1/untrackedQ?? dir2/modifiedQ?? dir2/untrackedQ?? expectQ?? outputQ?? untrackedQ" | + q_to_nul | tr -d "\\012" >expect && + git status -z >output && + test_cmp expect output +' + cat >expect <<\EOF # On branch master # Changes to be committed: -- 1.7.4.4 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html