From: Beat Bolli Date: Fri, 15 Mar 2024 19:46:19 +0000 (+0100) Subject: git-quiltimport: avoid an unnecessary subshell X-Git-Tag: v2.45.0-rc0~80^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c2a7536354561279eec277021690bf0fe9200b7b;p=thirdparty%2Fgit.git git-quiltimport: avoid an unnecessary subshell Use braces for the compound command. Signed-off-by: Beat Bolli Acked-by: Taylor Blau Signed-off-by: Junio C Hamano --- diff --git a/git-quiltimport.sh b/git-quiltimport.sh index e3d3909743..eb34cda409 100755 --- a/git-quiltimport.sh +++ b/git-quiltimport.sh @@ -148,7 +148,7 @@ do if [ -z "$dry_run" ] ; then git apply --index -C1 ${level:+"$level"} "$tmp_patch" && tree=$(git write-tree) && - commit=$( (echo "$SUBJECT"; echo; cat "$tmp_msg") | git commit-tree $tree -p $commit) && + commit=$( { echo "$SUBJECT"; echo; cat "$tmp_msg"; } | git commit-tree $tree -p $commit) && git update-ref -m "quiltimport: $patch_name" HEAD $commit || exit 4 fi done 3<"$QUILT_SERIES"