summaryrefslogtreecommitdiff
path: root/t/t3400-rebase.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-06-27 19:07:44 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-06-27 19:07:44 (GMT)
commitbcdfb20ae94138eac863b4c40263dc10f29917e5 (patch)
tree16ac75f5d25be56dfb28fe481d03b5526791680b /t/t3400-rebase.sh
parent4af574dbdc543b43e16838ed69890470b763136d (diff)
parent43c23251f924db4188cf74361cb7cc3257accce3 (diff)
downloadgit-bcdfb20ae94138eac863b4c40263dc10f29917e5.zip
git-bcdfb20ae94138eac863b4c40263dc10f29917e5.tar.gz
git-bcdfb20ae94138eac863b4c40263dc10f29917e5.tar.bz2
Merge branch 'js/maint-am-rebase-invalid-author'
* js/maint-am-rebase-invalid-author: am: use get_author_ident_from_commit instead of mailinfo when rebasing
Diffstat (limited to 't/t3400-rebase.sh')
-rwxr-xr-xt/t3400-rebase.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/t/t3400-rebase.sh b/t/t3400-rebase.sh
index e5691bc..d98c7b5 100755
--- a/t/t3400-rebase.sh
+++ b/t/t3400-rebase.sh
@@ -10,8 +10,9 @@ among other things.
'
. ./test-lib.sh
-GIT_AUTHOR_EMAIL=bogus_email_address
-export GIT_AUTHOR_EMAIL
+GIT_AUTHOR_NAME=author@name
+GIT_AUTHOR_EMAIL=bogus@email@address
+export GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL
test_expect_success \
'prepare repository with topic branches' \
@@ -80,6 +81,10 @@ test_expect_success \
'the rebase operation should not have destroyed author information' \
'! (git log | grep "Author:" | grep "<>")'
+test_expect_success \
+ 'the rebase operation should not have destroyed author information (2)' \
+ "git log -1 | grep 'Author: $GIT_AUTHOR_NAME <$GIT_AUTHOR_EMAIL>'"
+
test_expect_success 'HEAD was detached during rebase' '
test $(git rev-parse HEAD@{1}) != $(git rev-parse my-topic-branch@{1})
'