Skip to content

Commit 483e861

Browse files
newrengitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9df53c5 commit 483e861

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

t/t9902-completion.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ complete ()
2828
#
2929
# (2) A test makes sure that common subcommands are included in the
3030
# 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.
3232

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'
3535

3636
. "$GIT_BUILD_DIR/contrib/completion/git-completion.bash"
3737

@@ -1392,12 +1392,12 @@ test_expect_success 'basic' '
13921392
# built-in
13931393
grep -q "^add \$" out &&
13941394
# script
1395-
grep -q "^filter-branch \$" out &&
1395+
grep -q "^rebase \$" out &&
13961396
# plumbing
13971397
! grep -q "^ls-files \$" out &&
13981398
1399-
run_completion "git f" &&
1400-
! grep -q -v "^f" out
1399+
run_completion "git r" &&
1400+
! grep -q -v "^r" out
14011401
'
14021402

14031403
test_expect_success 'double dash "git" itself' '

0 commit comments

Comments
 (0)