]> rtime.felk.cvut.cz Git - git.git/commitdiff
t7508-status: status --porcelain ignores relative paths setting
authorMichael J Gruber <git@drmicha.warpmail.net>
Tue, 8 Dec 2009 10:12:01 +0000 (11:12 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Dec 2009 20:54:57 +0000 (12:54 -0800)
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7508-status.sh

index 99a74bda6f846098fe2f0ad4f17610ca6e1b1f49..8e7727e5d4122e6c95efb2bf34355a5d3591fab9 100755 (executable)
@@ -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: