Fix post-receive-email test for USER_EMAIL variable.
authorStephen Haberman <stephen@exigencecorp.com>
Tue, 11 Nov 2008 22:19:48 +0000 (16:19 -0600)
committerStephen Haberman <stephen@exigencecorp.com>
Tue, 11 Nov 2008 22:19:48 +0000 (16:19 -0600)
23 files changed:
tests/t2200-1.txt
tests/t2200-server-post-receive-email.sh
tests/t2201-1.txt
tests/t2201-2.txt
tests/t2201-3.txt
tests/t2201-4.txt
tests/t2201-5.txt
tests/t2201-6.txt
tests/t2201-7.txt
tests/t2201-8.txt
tests/t2201-server-post-receive-email-tags.sh
tests/t2202-1.txt
tests/t2202-2.txt
tests/t2202-3.txt
tests/t2202-4.txt
tests/t2202-5.txt
tests/t2202-6.txt
tests/t2202-server-post-receive-email-branches.sh
tests/t2203-1.txt
tests/t2203-2.txt
tests/t2203-server-post-receive-email-stable.sh
tests/t2204-1.txt
tests/t2204-server-post-receive-email-conflicts.sh

index cd80be7..79f3e01 100644 (file)
@@ -1,4 +1,4 @@
-From: author@payflex.com
+From: author@example.com
 To: commits@list.com
 Subject: [cbas] master branch updated. $new_commit_hash
 X-Git-Refname: refs/heads/master
index 3b42aff..28733db 100644 (file)
@@ -4,7 +4,7 @@ test_description='server post-receive email notification'
 
 . ./test-lib.sh
 
-export USER=author
+export USER_EMAIL=author@example.com
 
 test_expect_success 'setup' '
        echo "setup" >a &&
@@ -13,11 +13,10 @@ test_expect_success 'setup' '
        git clone ./. server &&
        rm -fr server/.git/hooks &&
        git remote add origin ./server &&
-       git config --add branch.master.remote origin &&
-       git config --add branch.master.merge refs/heads/master &&
-       GIT_DIR=./server/.git git config --add hooks.post-receive-email.mailinglist commits@list.com &&
-       GIT_DIR=./server/.git git config --add hooks.post-receive-email.debug true &&
-       GIT_DIR=.
+       git config branch.master.remote origin &&
+       git config branch.master.merge refs/heads/master &&
+       GIT_DIR=./server/.git git config hooks.post-receive-email.mailinglist commits@list.com &&
+       GIT_DIR=./server/.git git config hooks.post-receive-email.debug true &&
        echo cbas >./server/.git/description
 '
 
index d19fb71..46b6099 100644 (file)
@@ -1,4 +1,4 @@
-From: author@payflex.com
+From: author@example.com
 To: commits@list.com
 Subject: [cbas] 1.0 annotated tag created. 1.0
 X-Git-Refname: refs/tags/1.0
index c00a443..18b0c05 100644 (file)
@@ -1,4 +1,4 @@
-From: author@payflex.com
+From: author@example.com
 To: commits@list.com
 Subject: [cbas] master branch updated. 1.0-2-g$new_commit_abbrev
 X-Git-Refname: refs/heads/master
index 3646a09..1f128f4 100644 (file)
@@ -1,4 +1,4 @@
-From: author@payflex.com
+From: author@example.com
 To: commits@list.com
 Subject: [cbas] 2.0 annotated tag created. 2.0
 X-Git-Refname: refs/tags/2.0
index 0cc9d47..47bd8c3 100644 (file)
@@ -1,4 +1,4 @@
-From: author@payflex.com
+From: author@example.com
 To: commits@list.com
 Subject: [cbas] 2.1 tag created. $new_commit_describe
 X-Git-Refname: refs/tags/2.1
index 70379a7..8fbafe6 100644 (file)
@@ -1,4 +1,4 @@
-From: author@payflex.com
+From: author@example.com
 To: commits@list.com
 Subject: [cbas] 2.1 tag updated. $new_commit_describe
 X-Git-Refname: refs/tags/2.1
index a0f2f93..abcd52d 100644 (file)
@@ -1,4 +1,4 @@
-From: author@payflex.com
+From: author@example.com
 To: commits@list.com
 Subject: [cbas] 2.1 tag deleted. $old_commit_describe
 X-Git-Refname: refs/tags/2.1
index afcf165..9bb498e 100644 (file)
@@ -1,4 +1,4 @@
-From: author@payflex.com
+From: author@example.com
 To: commits@list.com
 Subject: [cbas] 2.0 annotated tag updated. 2.0
 X-Git-Refname: refs/tags/2.0
index 669dedd..500b78c 100644 (file)
@@ -1,4 +1,4 @@
-From: author@payflex.com
+From: author@example.com
 To: commits@list.com
 Subject: [cbas] 2.0 annotated tag deleted. $new_commit_describe
 X-Git-Refname: refs/tags/2.0
index 480f9cf..4b9f5a5 100644 (file)
@@ -4,7 +4,7 @@ test_description='server post-receive email notification'
 
 . ./test-lib.sh
 
-export USER=author
+export USER_EMAIL=author@example.com
 
 test_expect_success 'setup' '
        echo "setup" >a &&
@@ -13,11 +13,10 @@ test_expect_success 'setup' '
        git clone ./. server &&
        rm -fr server/.git/hooks &&
        git remote add origin ./server &&
-       git config --add branch.master.remote origin &&
-       git config --add branch.master.merge refs/heads/master &&
-       GIT_DIR=./server/.git git config --add hooks.post-receive-email.mailinglist commits@list.com &&
-       GIT_DIR=./server/.git git config --add hooks.post-receive-email.debug true &&
-       GIT_DIR=.
+       git config branch.master.remote origin &&
+       git config branch.master.merge refs/heads/master &&
+       GIT_DIR=./server/.git git config hooks.post-receive-email.mailinglist commits@list.com &&
+       GIT_DIR=./server/.git git config hooks.post-receive-email.debug true &&
        echo cbas >./server/.git/description
 '
 
index 3e5566c..ab04863 100644 (file)
@@ -1,4 +1,4 @@
-From: author@payflex.com
+From: author@example.com
 To: commits@list.com
 Subject: [cbas] topic branch created. $new_commit_hash
 X-Git-Refname: refs/heads/topic
index 573f010..519d370 100644 (file)
@@ -1,4 +1,4 @@
-From: author@payflex.com
+From: author@example.com
 To: commits@list.com
 Subject: [cbas] topic branch deleted. $old_commit_hash
 X-Git-Refname: refs/heads/topic
index a6d04c8..128a1c8 100644 (file)
@@ -1,4 +1,4 @@
-From: author@payflex.com
+From: author@example.com
 To: commits@list.com
 Subject: [cbas] topic2 branch created. $existing_commit_hash
 X-Git-Refname: refs/heads/topic2
index ffab4be..f967307 100644 (file)
@@ -1,4 +1,4 @@
-From: author@payflex.com
+From: author@example.com
 To: commits@list.com
 Subject: [cbas] topic branch updated. $existing_commit_hash
 X-Git-Refname: refs/heads/topic
index ca00200..8261dec 100644 (file)
@@ -1,4 +1,4 @@
-From: author@payflex.com
+From: author@example.com
 To: commits@list.com
 Subject: [cbas] topic branch updated. $new_commit_hash
 X-Git-Refname: refs/heads/topic
index 218bcde..c7178b5 100644 (file)
@@ -1,4 +1,4 @@
-From: author@payflex.com
+From: author@example.com
 To: commits@list.com
 Subject: [cbas] topic branch updated. $new_commit_hash
 X-Git-Refname: refs/heads/topic
index 830a860..d794b11 100644 (file)
@@ -4,7 +4,7 @@ test_description='server post-receive email notification'
 
 . ./test-lib.sh
 
-export USER=author
+export USER_EMAIL=author@example.com
 
 test_expect_success 'setup' '
        echo "setup" >a &&
@@ -13,11 +13,10 @@ test_expect_success 'setup' '
        git clone ./. server &&
        rm -fr server/.git/hooks &&
        git remote add origin ./server &&
-       git config --add branch.master.remote origin &&
-       git config --add branch.master.merge refs/heads/master &&
-       GIT_DIR=./server/.git git config --add hooks.post-receive-email.mailinglist commits@list.com &&
-       GIT_DIR=./server/.git git config --add hooks.post-receive-email.debug true &&
-       GIT_DIR=.
+       git config branch.master.remote origin &&
+       git config branch.master.merge refs/heads/master &&
+       GIT_DIR=./server/.git git config hooks.post-receive-email.mailinglist commits@list.com &&
+       GIT_DIR=./server/.git git config hooks.post-receive-email.debug true &&
        echo cbas >./server/.git/description
 '
 
index 2279ac1..bf8d28f 100644 (file)
@@ -1,4 +1,4 @@
-From: author@payflex.com
+From: author@example.com
 To: commits@list.com
 Subject: [cbas] topic1 branch updated. $new_commit_hash
 X-Git-Refname: refs/heads/topic1
index 81f3c52..3da2cdb 100644 (file)
@@ -1,4 +1,4 @@
-From: author@payflex.com
+From: author@example.com
 To: commits@list.com
 Subject: [cbas] topic1 branch updated. $new_commit_hash
 X-Git-Refname: refs/heads/topic1
index f8fe3ed..bf545f9 100644 (file)
@@ -4,7 +4,7 @@ test_description='server post-receive email notification and how it behaves in o
 
 . ./test-lib.sh
 
-export USER=author
+export USER_EMAIL=author@example.com
 
 test_expect_success 'setup' '
        echo "setup" >a &&
@@ -15,11 +15,10 @@ test_expect_success 'setup' '
        git clone ./. server &&
        rm -fr server/.git/hooks &&
        git remote add origin ./server &&
-       git config --add branch.master.remote origin &&
-       git config --add branch.master.merge refs/heads/master &&
-       GIT_DIR=./server/.git git config --add hooks.post-receive-email.mailinglist commits@list.com &&
-       GIT_DIR=./server/.git git config --add hooks.post-receive-email.debug true &&
-       GIT_DIR=. &&
+       git config branch.master.remote origin &&
+       git config branch.master.merge refs/heads/master &&
+       GIT_DIR=./server/.git git config hooks.post-receive-email.mailinglist commits@list.com &&
+       GIT_DIR=./server/.git git config hooks.post-receive-email.debug true &&
        echo cbas >./server/.git/description &&
 
        git checkout -b stable &&
index 4b7d92b..8e5bef1 100644 (file)
@@ -1,45 +1,45 @@
-From: author@payflex.com\r
-To: commits@list.com\r
-Subject: [cbas] topic1 branch updated. $new_commit_hash\r
-X-Git-Refname: refs/heads/topic1\r
-X-Git-Reftype: branch\r
-X-Git-Oldrev: $old_commit_hash\r
-X-Git-Newrev: $new_commit_hash\r
-\r
-The branch, topic1 has been updated\r
-       via $new_commit_abbrev resolved lines for merging stable into topic1\r
-      from $old_commit_abbrev lines changed on topic1\r
-\r
-Those revisions listed above that are new to this repository have\r
-not appeared on any other notification email; so we list those\r
-revisions in full, below.\r
-\r
-- Log -----------------------------------------------------------------\r
-\r
-commit $new_commit_hash\r
-Merge: $old_commit_hash $stable_hash\r
-Author: A U Thor <author@example.com>\r
-Date:   $new_commit_date\r
-\r
-    resolved lines for merging stable into topic1\r
-\r
-$new_commit_hash\r
-diff --cc a\r
-index d288e69,a9ccdfe..3f45f93\r
---- a/a\r
-+++ b/a\r
-@@@ -1,3 -1,3 +1,3 @@@\r
-- line1.topic1\r
-- line2.topic1\r
-- line3.topic1\r
- -line1.stable\r
-++line1.topic\r
-+ line2.stable\r
- -line3.stable\r
-++line3.resolved\r
-\r
------------------------------------------------------------------------\r
-\r
-Summary of changes:\r
- a |    6 +++---\r
- 1 files changed, 3 insertions(+), 3 deletions(-)\r
+From: author@example.com
+To: commits@list.com
+Subject: [cbas] topic1 branch updated. $new_commit_hash
+X-Git-Refname: refs/heads/topic1
+X-Git-Reftype: branch
+X-Git-Oldrev: $old_commit_hash
+X-Git-Newrev: $new_commit_hash
+
+The branch, topic1 has been updated
+       via $new_commit_abbrev resolved lines for merging stable into topic1
+      from $old_commit_abbrev lines changed on topic1
+
+Those revisions listed above that are new to this repository have
+not appeared on any other notification email; so we list those
+revisions in full, below.
+
+- Log -----------------------------------------------------------------
+
+commit $new_commit_hash
+Merge: $old_commit_hash $stable_hash
+Author: A U Thor <author@example.com>
+Date:   $new_commit_date
+
+    resolved lines for merging stable into topic1
+
+$new_commit_hash
+diff --cc a
+index d288e69,a9ccdfe..3f45f93
+--- a/a
++++ b/a
+@@@ -1,3 -1,3 +1,3 @@@
+- line1.topic1
+- line2.topic1
+- line3.topic1
+ -line1.stable
+++line1.topic
++ line2.stable
+ -line3.stable
+++line3.resolved
+
+-----------------------------------------------------------------------
+
+Summary of changes:
+ a |    6 +++---
+ 1 files changed, 3 insertions(+), 3 deletions(-)
index 45b7cb9..f86e6ba 100644 (file)
@@ -4,7 +4,7 @@ test_description='server post-receive email notification and how it behaves in o
 
 . ./test-lib.sh
 
-export USER=author
+export USER_EMAIL=author@example.com
 
 test_expect_success 'setup' '
        echo "setup" >a &&
@@ -15,11 +15,10 @@ test_expect_success 'setup' '
        git clone ./. server &&
        rm -fr server/.git/hooks &&
        git remote add origin ./server &&
-       git config --add branch.master.remote origin &&
-       git config --add branch.master.merge refs/heads/master &&
-       GIT_DIR=./server/.git git config --add hooks.post-receive-email.mailinglist commits@list.com &&
-       GIT_DIR=./server/.git git config --add hooks.post-receive-email.debug true &&
-       GIT_DIR=. &&
+       git config branch.master.remote origin &&
+       git config branch.master.merge refs/heads/master &&
+       GIT_DIR=./server/.git git config hooks.post-receive-email.mailinglist commits@list.com &&
+       GIT_DIR=./server/.git git config hooks.post-receive-email.debug true &&
        echo cbas >./server/.git/description &&
 
        git checkout -b stable &&