From c521bb7114e081d81eb7cd77cf5989d30160d0a2 Mon Sep 17 00:00:00 2001 From: Michael J Gruber Date: Tue, 8 Dec 2009 11:12:01 +0100 Subject: [PATCH] t7508-status: status --porcelain ignores relative paths setting Signed-off-by: Michael J Gruber Signed-off-by: Junio C Hamano --- t/t7508-status.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/t/t7508-status.sh b/t/t7508-status.sh index 99a74bda6..8e7727e5d 100755 --- a/t/t7508-status.sh +++ b/t/t7508-status.sh @@ -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: -- 2.26.2