3 test_description='test <branch>@{upstream} syntax'
7 test_expect_success 'setup' '
11 git checkout -b test master &&
17 test_expect_success 'test tail creation' '
18 git rev-parse refs/tails/test > actual &&
19 git rev-parse master > expect &&
20 test_cmp expect actual
23 test_expect_success 'test @{tail}' '
24 git rev-parse test@{tail} > actual &&
25 git rev-parse master > expect &&
26 test_cmp expect actual
29 test_expect_success 'test rebase tail update' '
30 git checkout -b next master &&
31 echo three > content &&
32 git commit -a -m three &&
33 git rebase --onto next test@{tail} test &&
34 git rev-parse test@{tail} > actual &&
35 git rev-parse next > expect &&
36 test_cmp expect actual