| # Copyright (c) 2005 Amos Waterland |
| test_description='git rebase should not destroy author information |
| This test runs git rebase and checks that the author information is not lost. |
| export GIT_AUTHOR_EMAIL=bogus_email_address |
| 'prepare repository with topic branch, then rebase against master' \ |
| git-update-index --add A && |
| git-commit -m "Add A." && |
| git checkout -b my-topic-branch && |
| git-update-index --add B && |
| git-commit -m "Add B." && |
| git checkout -f master && |
| git-commit -m "Modify A." && |
| git checkout -f my-topic-branch && |
| 'the rebase operation should not have destroyed author information' \ |
| 'git log | grep "Author:" | grep "<>"' |