]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t5520: let sed open its own input
authorDenton Liu <liu.denton@gmail.com>
Tue, 12 Nov 2019 23:07:52 +0000 (15:07 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 21 Nov 2019 00:41:51 +0000 (09:41 +0900)
We were using a redirection operator to feed input into sed. However,
since sed is capable of opening its own files, make sed open its own
files instead of redirecting input into it.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5520-pull.sh

index a3de2e19b6c6cf411fd38d347bcc2f26a8b5aa98..55560ce3cdce27decbae4cf08c9051f218b34dc1 100755 (executable)
@@ -5,7 +5,7 @@ test_description='pulling into void'
 . ./test-lib.sh
 
 modify () {
-       sed -e "$1" <"$2" >"$2.x" &&
+       sed -e "$1" "$2" >"$2.x" &&
        mv "$2.x" "$2"
 }