t9902: use a non-deprecated command for testing

t9902 had a list of three random porcelain commands as a sanity check, one of which was filter-branch. Since we are recommending people not use filter-branch, let's update this test to use rebase instead of filter-branch. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Elijah Newren committed Sep 4, 2019 at 15:32 UTC 483e861111444b1e7c5c6a8442f2a306508adfb0
1 file changed +6 -6
t/t9902-completion.sh
+6 -6
@@ -28,10 +28,10 @@ complete ()
28 #
29 # (2) A test makes sure that common subcommands are included in the
30 # completion for "git <TAB>", and a plumbing is excluded. "add",
31 -# "filter-branch" and "ls-files" are listed for this.
31 +# "rebase" and "ls-files" are listed for this.
32
33 -GIT_TESTING_ALL_COMMAND_LIST='add checkout check-attr filter-branch ls-files'
34 -GIT_TESTING_PORCELAIN_COMMAND_LIST='add checkout filter-branch'
33 +GIT_TESTING_ALL_COMMAND_LIST='add checkout check-attr rebase ls-files'
34 +GIT_TESTING_PORCELAIN_COMMAND_LIST='add checkout rebase'
35
36 . "$GIT_BUILD_DIR/contrib/completion/git-completion.bash"
37
@@ -1392,12 +1392,12 @@ test_expect_success 'basic' '
1392 # built-in
1393 grep -q "^add \$" out &&
1394 # script
1395 - grep -q "^filter-branch \$" out &&
1395 + grep -q "^rebase \$" out &&
1396 # plumbing
1397 ! grep -q "^ls-files \$" out &&
1398
1399 - run_completion "git f" &&
1400 - ! grep -q -v "^f" out
1399 + run_completion "git r" &&
1400 + ! grep -q -v "^r" out
1401 '
1402
1403 test_expect_success 'double dash "git" itself' '