]> git.ipfire.org Git - thirdparty/git.git/commitdiff
contrib/subtree/t: avoid redundant use of cat
authorBeat Bolli <bb@drbeat.li>
Fri, 15 Mar 2024 19:45:59 +0000 (20:45 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 16 Mar 2024 18:08:55 +0000 (11:08 -0700)
Signed-off-by: Beat Bolli <dev+git@drbeat.li>
Acked-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/subtree/t/t7900-subtree.sh

index ca4df5be83245fe9a37a0b46737b61071f3b78b0..c3bd2a58b941f0bda8673a707fb0da71e4cbca88 100755 (executable)
@@ -63,7 +63,7 @@ test_create_pre2_32_repo () {
        git -C "$1" log -1 --format=%B HEAD^2 >msg &&
        test_commit -C "$1-sub" --annotate sub2 &&
        git clone --no-local "$1" "$1-clone" &&
-       new_commit=$(cat msg | sed -e "s/$commit/$tag/" | git -C "$1-clone" commit-tree HEAD^2^{tree}) &&
+       new_commit=$(sed -e "s/$commit/$tag/" msg | git -C "$1-clone" commit-tree HEAD^2^{tree}) &&
        git -C "$1-clone" replace HEAD^2 $new_commit
 }