diff options
author | Denton Liu <liu.denton@gmail.com> | 2019-12-20 10:15:57 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-12-20 11:30:45 -0800 |
commit | b87b02cfe6973ac8cc778e0463bc3ad6accb96a6 (patch) | |
tree | 00f45933dd79339476299ccb60982d8eb715c33e /t | |
parent | t1307: reorder `nongit test_must_fail` (diff) | |
download | tgif-b87b02cfe6973ac8cc778e0463bc3ad6accb96a6.tar.xz |
t1409: let sed open its own input file
In one case, we were using a redirection operator to feed input into
sed. However, since sed is capable of opening its own input file, make
sed do that 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')
-rwxr-xr-x | t/t1409-avoid-packing-refs.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t1409-avoid-packing-refs.sh b/t/t1409-avoid-packing-refs.sh index c46848eb8e..f74d890e82 100755 --- a/t/t1409-avoid-packing-refs.sh +++ b/t/t1409-avoid-packing-refs.sh @@ -8,7 +8,7 @@ test_description='avoid rewriting packed-refs unnecessarily' # shouldn't upset readers, and it should be omitted if the file is # ever rewritten. mark_packed_refs () { - sed -e "s/^\(#.*\)/\1 t1409 /" <.git/packed-refs >.git/packed-refs.new && + sed -e "s/^\(#.*\)/\1 t1409 /" .git/packed-refs >.git/packed-refs.new && mv .git/packed-refs.new .git/packed-refs } |