Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael J Gruber <git@drmicha.warpmail.net>2009-12-08 13:12:01 +0300
committerJunio C Hamano <gitster@pobox.com>2009-12-08 23:54:57 +0300
commitc521bb7114e081d81eb7cd77cf5989d30160d0a2 (patch)
tree282395bcffc877aa7a2a3d1e34ce57655a3013ec /t/t7508-status.sh
parent8661768fc9cfdeeaae76693501b82940cfcbedc2 (diff)
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/t7508-status.sh')
-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)