mirror of
https://github.com/git/git
synced 2024-11-05 01:58:18 +00:00
contrib/subtree/t: avoid redundant use of cat
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>
This commit is contained in:
parent
938e891a9a
commit
2fbd3ac8e6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue