mirror of
https://github.com/git-for-windows/git.git
synced 2026-02-04 03:33:01 -06:00
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>
This commit is contained in:
parent
53c62b9810
commit
4c8b046f82
@ -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"
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user