Skip to content

Commit c2a7536

Browse files
Beat Bolligitster
authored andcommitted
git-quiltimport: avoid an unnecessary subshell
Use braces for the compound command. Signed-off-by: Beat Bolli <[email protected]> Acked-by: Taylor Blau <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f70bc70 commit c2a7536

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-quiltimport.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ do
148148
if [ -z "$dry_run" ] ; then
149149
git apply --index -C1 ${level:+"$level"} "$tmp_patch" &&
150150
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) &&
152152
git update-ref -m "quiltimport: $patch_name" HEAD $commit || exit 4
153153
fi
154154
done 3<"$QUILT_SERIES"

0 commit comments

Comments
 (0)