Skip to content

Commit

Permalink
git-quiltimport: avoid an unnecessary subshell
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Beat Bolli authored and gitster committed Mar 16, 2024
1 parent f70bc70 commit c2a7536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-quiltimport.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c2a7536

Please sign in to comment.