t7508-status: status --porcelain ignores relative paths setting

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Michael J Gruber 2009-12-08 11:12:01 +01:00 committed by Junio C Hamano
parent 8661768fc9
commit c521bb7114

View File

@ -297,6 +297,24 @@ test_expect_success 'status -s with relative paths' '
'
cat > expect << \EOF
M dir1/modified
A dir2/added
?? dir1/untracked
?? dir2/modified
?? dir2/untracked
?? expect
?? output
?? untracked
EOF
test_expect_success 'status --porcelain ignores relative paths setting' '
(cd dir1 && git status --porcelain) > output &&
test_cmp expect output
'
cat > expect << \EOF
# On branch master
# Changes to be committed: