aboutsummaryrefslogtreecommitdiff
path: root/t/t3800-mktag.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2008-06-14 03:26:37 -0400
committerJunio C Hamano <gitster@pobox.com>2008-06-14 11:39:16 -0700
commit74f16b0c6fece88f585f9556fa1d3a7406e7a42e (patch)
tree69eeae4a23e0842bd7a9cc936a76554e257be4bd /t/t3800-mktag.sh
parent3b2eb186bb738a374d9325b18710b19ec270e55f (diff)
downloadgit-74f16b0c6fece88f585f9556fa1d3a7406e7a42e.tar.gz
git-74f16b0c6fece88f585f9556fa1d3a7406e7a42e.tar.xz
mask necessary whitespace policy violations in test scripts
All of these violations are necessary parts of the tests (which are generally checking the behavior of trailing whitespace, or contain diff fragments with empty lines). Our solution is two-fold: 1. Process input with whitespace problems using tr. This has the added bonus that it becomes very obvious where the bogus whitespace is intended to go. 2. Move large diff fragments into their own supplemental files. This gets rid of the whitespace problem, since supplemental files are not checked, and it also makes the test script a bit easier to read. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3800-mktag.sh')
-rwxr-xr-xt/t3800-mktag.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t3800-mktag.sh b/t/t3800-mktag.sh
index df1fd6f86..c851db8ca 100755
--- a/t/t3800-mktag.sh
+++ b/t/t3800-mktag.sh
@@ -241,11 +241,11 @@ check_verify_failure 'disallow spaces in tag email' \
############################################################
# 17. disallow missing tag timestamp
-cat >tag.sig <<EOF
+tr '_' ' ' >tag.sig <<EOF
object $head
type commit
tag mytag
-tagger T A Gger <tagger@example.com>
+tagger T A Gger <tagger@example.com>__
EOF