X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=t%2Ft9902-completion.sh;h=47e20fb8b149de244a9336e509b0852b87281000;hb=d12df942ba017c1301a51083b82431e9b3699a11;hp=8835e16e8110f458885c977d4002685a2fc16662;hpb=4dd046932835d14c449f04ee0f3885669cad60c5;p=thirdparty%2Fgit.git diff --git a/t/t9902-completion.sh b/t/t9902-completion.sh index 8835e16e81..47e20fb8b1 100755 --- a/t/t9902-completion.sh +++ b/t/t9902-completion.sh @@ -1622,14 +1622,22 @@ test_expect_success 'git checkout - with -d, complete only references' ' ' test_expect_success 'git switch - with --track, complete only remote branches' ' - test_completion "git switch --track " <<-\EOF + test_completion "git switch --track " <<-\EOF && + other/branch-in-other Z + other/main-in-other Z + EOF + test_completion "git switch -t " <<-\EOF other/branch-in-other Z other/main-in-other Z EOF ' test_expect_success 'git checkout - with --track, complete only remote branches' ' - test_completion "git checkout --track " <<-\EOF + test_completion "git checkout --track " <<-\EOF && + other/branch-in-other Z + other/main-in-other Z + EOF + test_completion "git checkout -t " <<-\EOF other/branch-in-other Z other/main-in-other Z EOF