]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t3104: remove shift code in 'test_ls_tree_format'
authorTeng Long <dyroneteng@gmail.com>
Thu, 12 Jan 2023 09:11:35 +0000 (17:11 +0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Jan 2023 23:09:23 +0000 (15:09 -0800)
In t3104-ls-tree-format.sh, There is a legacy 'shift 2' code
and the relevant code block no longer depends on it anymore,
so let's remove it for a small cleanup.

Signed-off-by: Teng Long <dyroneteng@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3104-ls-tree-format.sh

index 383896667b6dc9e446c157370dedd3a3aa8051d1..74053978f496b81426cf0ca8b21cd90d49fe2012 100755 (executable)
@@ -20,7 +20,6 @@ test_ls_tree_format () {
        format=$1 &&
        opts=$2 &&
        fmtopts=$3 &&
-       shift 2 &&
 
        test_expect_success "ls-tree '--format=<$format>' is like options '$opts $fmtopts'" '
                git ls-tree $opts -r HEAD >expect &&