]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t1600-index: remove unnecessary redirection
authorSZEDER Gábor <szeder.dev@gmail.com>
Thu, 26 Aug 2021 20:59:59 +0000 (22:59 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 8 Sep 2021 06:23:47 +0000 (23:23 -0700)
In a helper function in the 't1600-index.sh' test script the stderr
of a 'git add' command is redirected to its stdout, but its stdout is
not redirected anywhere.  So apparently this redirection is
unnecessary, remove it.

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Acked-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1600-index.sh

index c9b9e718b89403012b8ce555b474698b8d567140..5d10cec67a5c851546d82fca56de0caf4bad9f21 100755 (executable)
@@ -79,7 +79,7 @@ test_index_version () {
                else
                        unset GIT_INDEX_VERSION
                fi &&
-               git add a 2>&1 &&
+               git add a &&
                echo $EXPECTED_OUTPUT_VERSION >expect &&
                test-tool index-version <.git/index >actual &&
                test_cmp expect actual