git-quiltimport: avoid an unnecessary subshell

Use braces for the compound command. 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>

Beat Bolli committed Mar 15, 2024 at 20:46 UTC c2a7536354561279eec277021690bf0fe9200b7b
1 file changed +1 -1
git-quiltimport.sh
+1 -1
@@ -148,7 +148,7 @@ do
148 if [ -z "$dry_run" ] ; then
149 git apply --index -C1 ${level:+"$level"} "$tmp_patch" &&
150 tree=$(git write-tree) &&
151 - commit=$( (echo "$SUBJECT"; echo; cat "$tmp_msg") | git commit-tree $tree -p $commit) &&
151 + commit=$( { echo "$SUBJECT"; echo; cat "$tmp_msg"; } | git commit-tree $tree -p $commit) &&
152 git update-ref -m "quiltimport: $patch_name" HEAD $commit || exit 4
153 fi
154 done 3<"$QUILT_SERIES"