3 test_description='script create branch'
7 export PATH=$PATH:../../scripts
9 test_expect_success 'setup' '
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 &&
20 git checkout -b stable
21 git push origin stable
24 test_expect_success 'create branch clones stable' '
26 git branch | grep topic1
27 git branch -r | grep origin/topic1
28 git config --list | grep "branch.topic1.merge=refs/heads/topic1"