Skip to content

Commit 2fbd3ac

Browse files
Beat Bolligitster
authored andcommitted
contrib/subtree/t: avoid redundant use of cat
Signed-off-by: Beat Bolli <[email protected]> Acked-by: Taylor Blau <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 938e891 commit 2fbd3ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/subtree/t/t7900-subtree.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ test_create_pre2_32_repo () {
6363
git -C "$1" log -1 --format=%B HEAD^2 >msg &&
6464
test_commit -C "$1-sub" --annotate sub2 &&
6565
git clone --no-local "$1" "$1-clone" &&
66-
new_commit=$(cat msg | sed -e "s/$commit/$tag/" | git -C "$1-clone" commit-tree HEAD^2^{tree}) &&
66+
new_commit=$(sed -e "s/$commit/$tag/" msg | git -C "$1-clone" commit-tree HEAD^2^{tree}) &&
6767
git -C "$1-clone" replace HEAD^2 $new_commit
6868
}
6969

0 commit comments

Comments
 (0)