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