summaryrefslogtreecommitdiffstats
path: root/t/t5520-pull.sh
diff options
context:
space:
mode:
authorDenton Liu <liu.denton@gmail.com>2019-11-13 00:07:52 +0100
committerJunio C Hamano <gitster@pobox.com>2019-11-21 01:41:51 +0100
commit4c8b046f82cbc468fc28b6e52883a15ee2942ec7 (patch)
tree04c7db1062ddc4154e8446027f22e8ed4e4401a2 /t/t5520-pull.sh
parentt5520: use sq for test case names (diff)
downloadgit-4c8b046f82cbc468fc28b6e52883a15ee2942ec7.tar.xz
git-4c8b046f82cbc468fc28b6e52883a15ee2942ec7.zip
t5520: let sed open its own input
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>
Diffstat (limited to 't/t5520-pull.sh')
-rwxr-xr-xt/t5520-pull.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5520-pull.sh b/t/t5520-pull.sh
index a3de2e19b6..55560ce3cd 100755
--- a/t/t5520-pull.sh
+++ b/t/t5520-pull.sh
@@ -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"
}