summaryrefslogtreecommitdiff
path: root/t/annotate-tests.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2011-05-06 10:50:32 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-05-06 10:50:32 -0700
commit2190a43c42a049d75344a381f3c8d947876c997b (patch)
treed4b13f587a30d5a4647bdbde192dee9c354be38b /t/annotate-tests.sh
parentMerge branch 'jk/format-patch-quote-special-in-from' (diff)
parentt/annotate-tests: Use echo & cat instead of sed (diff)
downloadtgif-2190a43c42a049d75344a381f3c8d947876c997b.tar.xz
Merge branch 'js/blame-parsename'
* js/blame-parsename: t/annotate-tests: Use echo & cat instead of sed blame: tolerate bogus e-mail addresses a bit better
Diffstat (limited to 't/annotate-tests.sh')
-rw-r--r--t/annotate-tests.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/t/annotate-tests.sh b/t/annotate-tests.sh
index d34208cc27..c56a77d237 100644
--- a/t/annotate-tests.sh
+++ b/t/annotate-tests.sh
@@ -1,5 +1,5 @@
# This file isn't used as a test script directly, instead it is
-# sourced from t8001-annotate.sh and t8001-blame.sh.
+# sourced from t8001-annotate.sh and t8002-blame.sh.
check_count () {
head=
@@ -124,3 +124,14 @@ test_expect_success \
test_expect_success \
'some edit' \
'check_count A 1 B 1 B1 1 B2 1 "A U Thor" 1 C 1 D 1'
+
+test_expect_success \
+ 'an obfuscated email added' \
+ 'echo "No robots allowed" > file.new &&
+ cat file >> file.new &&
+ mv file.new file &&
+ GIT_AUTHOR_NAME="E" GIT_AUTHOR_EMAIL="E at test dot git" git commit -a -m "norobots"'
+
+test_expect_success \
+ 'obfuscated email parsed' \
+ 'check_count A 1 B 1 B1 1 B2 1 "A U Thor" 1 C 1 D 1 E 1'