aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-09-14 21:20:40 -0700
committerJunio C Hamano <gitster@pobox.com>2012-09-14 21:20:40 -0700
commitc336bc104c47cc9c2f7caf6bce468fe00a8f6850 (patch)
tree501143681bb20b9d4642e5029a77bec2d321482c /t
parente70d1632bdaf25a9ee528e78133cab319083eade (diff)
parentbafc478f1618534fcb85bedc0fa224bd2d462441 (diff)
downloadgit-c336bc104c47cc9c2f7caf6bce468fe00a8f6850.tar.gz
git-c336bc104c47cc9c2f7caf6bce468fe00a8f6850.tar.xz
Sync with 1.7.11.7
Diffstat (limited to 't')
-rwxr-xr-xt/t0070-fundamental.sh5
-rwxr-xr-xt/t7007-show.sh12
2 files changed, 17 insertions, 0 deletions
diff --git a/t/t0070-fundamental.sh b/t/t0070-fundamental.sh
index 9bee8bfd2..da2c504e5 100755
--- a/t/t0070-fundamental.sh
+++ b/t/t0070-fundamental.sh
@@ -25,4 +25,9 @@ test_expect_success POSIXPERM 'mktemp to unwritable directory prints filename' '
grep "cannotwrite/test" err
'
+test_expect_success 'check for a bug in the regex routines' '
+ # if this test fails, re-build git with NO_REGEX=1
+ test-regex
+'
+
test_done
diff --git a/t/t7007-show.sh b/t/t7007-show.sh
index a40cd3630..e41fa00b8 100755
--- a/t/t7007-show.sh
+++ b/t/t7007-show.sh
@@ -108,4 +108,16 @@ test_expect_success 'showing range' '
test_cmp expect actual.filtered
'
+test_expect_success '-s suppresses diff' '
+ echo main3 >expect &&
+ git show -s --format=%s main3 >actual &&
+ test_cmp expect actual
+'
+
+test_expect_success '--quiet suppresses diff' '
+ echo main3 >expect &&
+ git show --quiet --format=%s main3 >actual &&
+ test_cmp expect actual
+'
+
test_done