Test for pull doing rebase.
[git-central.git] / tests / t5000-script-create-branch.sh
1 #!/bin/sh
2
3 test_description='script create branch'
4
5 . ./test-lib.sh
6
7 export PATH=$PATH:../../scripts
8
9 test_expect_success 'setup' '
10         echo "setup" >a &&
11         git add a &&
12         git commit -m "setup" &&
13         git clone ./. server &&
14         rm -fr server/.git/hooks &&
15         git remote add origin ./server &&
16         git config --add branch.master.remote origin &&
17         git config --add branch.master.merge refs/heads/master &&
18         git fetch
19
20         git checkout -b stable
21         git push origin stable
22 '
23
24 test_expect_success 'create branch clones stable' '
25         create-branch topic1
26         git branch | grep topic1
27         git branch -r | grep origin/topic1
28         git config --list | grep "branch.topic1.merge=refs/heads/topic1"
29 '
30
31 test_done
32