]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git-quiltimport: avoid an unnecessary subshell
authorBeat Bolli <bb@drbeat.li>
Fri, 15 Mar 2024 19:46:19 +0000 (20:46 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 16 Mar 2024 18:08:57 +0000 (11:08 -0700)
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>
git-quiltimport.sh

index e3d390974331e83261ba32e757724723b9bea724..eb34cda4092aaf0a396893cd424ca358d93b36aa 100755 (executable)
@@ -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"