зеркало из https://github.com/microsoft/git.git
t6040: test branch -vv
t6040 has a test for 'git branch -v' but not for 'git branch -vv'. Add one. Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
b792c06787
Коммит
afc1692fef
|
@ -51,6 +51,22 @@ test_expect_success 'branch -v' '
|
|||
test_i18ncmp expect actual
|
||||
'
|
||||
|
||||
cat >expect <<\EOF
|
||||
b1 origin/master: ahead 1, behind 1
|
||||
b2 origin/master: ahead 1, behind 1
|
||||
b3 origin/master: behind 1
|
||||
b4 origin/master: ahead 2
|
||||
EOF
|
||||
|
||||
test_expect_success 'branch -vv' '
|
||||
(
|
||||
cd test &&
|
||||
git branch -vv
|
||||
) |
|
||||
sed -n -e "$script" >actual &&
|
||||
test_i18ncmp expect actual
|
||||
'
|
||||
|
||||
test_expect_success 'checkout' '
|
||||
(
|
||||
cd test && git checkout b1
|
||||
|
|
Загрузка…
Ссылка в новой задаче