Skip to content

Commit b87b02c

Browse files
Denton-Lgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9b92070 commit b87b02c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t1409-avoid-packing-refs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ test_description='avoid rewriting packed-refs unnecessarily'
88
# shouldn't upset readers, and it should be omitted if the file is
99
# ever rewritten.
1010
mark_packed_refs () {
11-
sed -e "s/^\(#.*\)/\1 t1409 /" <.git/packed-refs >.git/packed-refs.new &&
11+
sed -e "s/^\(#.*\)/\1 t1409 /" .git/packed-refs >.git/packed-refs.new &&
1212
mv .git/packed-refs.new .git/packed-refs
1313
}
1414

0 commit comments

Comments
 (0)