summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Michael J Gruber <git@drmicha.warpmail.net>2009-12-08 11:12:01 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-12-08 12:54:57 -0800
commitc521bb7114e081d81eb7cd77cf5989d30160d0a2 (patch)
tree282395bcffc877aa7a2a3d1e34ce57655a3013ec /t
parentstatus: reduce duplicated setup code (diff)
downloadtgif-c521bb7114e081d81eb7cd77cf5989d30160d0a2.tar.xz
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>
Diffstat (limited to 't')
-rwxr-xr-xt/t7508-status.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/t/t7508-status.sh b/t/t7508-status.sh
index 99a74bda6f..8e7727e5d4 100755
--- a/t/t7508-status.sh
+++ b/t/t7508-status.sh
@@ -298,6 +298,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:
# (use "git reset HEAD <file>..." to unstage)