Allow branches to be excused from the ticket check.
[git-central.git] / tests / t1100-client-post-commit-rebase.sh
1 #!/bin/sh
2
3 test_description='client checkout auto-set branch rebase=true'
4
5 . ./test-lib.sh
6
7 test_expect_success 'setup' '
8         echo "setup" >file &&
9         git add file &&
10         git commit -m "setup"
11 '
12
13 # setup the post-checkout hook
14 install_client_hook 'post-checkout-rebase' 'post-checkout'
15
16 test_expect_success 'sets rebase on new topic branch' '
17         ! git config --list | grep branch.master.rebase &&
18         git checkout -b topic master &&
19         git config --list | grep branch.topic.rebase=true
20 '
21
22 test_done
23