summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7c9f703)
raw | patch | inline | side by side (parent: 7c9f703)
author | Brandon Casey <drafnel@gmail.com> | |
Thu, 26 May 2011 20:43:20 +0000 (13:43 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 29 May 2011 20:00:06 +0000 (13:00 -0700) |
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>
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>
t/t7508-status.sh | patch | blob | history |
diff --git a/t/t7508-status.sh b/t/t7508-status.sh
index 1173dbb36e7010dd01f2b224543ae94a6644af9f..9bc9817f289385dd0e2338313d6b7cbcd4125b5a 100755 (executable)
--- a/t/t7508-status.sh
+++ b/t/t7508-status.sh
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: