Git fork

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>

authored by

Beat Bolli and committed by
Junio C Hamano
c2a75363 f70bc702

+1 -1
+1 -1
git-quiltimport.sh
··· 148 148 if [ -z "$dry_run" ] ; then 149 149 git apply --index -C1 ${level:+"$level"} "$tmp_patch" && 150 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 152 git update-ref -m "quiltimport: $patch_name" HEAD $commit || exit 4 153 153 fi 154 154 done 3<"$QUILT_SERIES"