mirror of
https://github.com/git/git
synced 2024-11-04 16:17:49 +00:00
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>
This commit is contained in:
parent
f70bc702e5
commit
c2a7536354
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ do
|
||||||
if [ -z "$dry_run" ] ; then
|
if [ -z "$dry_run" ] ; then
|
||||||
git apply --index -C1 ${level:+"$level"} "$tmp_patch" &&
|
git apply --index -C1 ${level:+"$level"} "$tmp_patch" &&
|
||||||
tree=$(git write-tree) &&
|
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
|
git update-ref -m "quiltimport: $patch_name" HEAD $commit || exit 4
|
||||||
fi
|
fi
|
||||||
done 3<"$QUILT_SERIES"
|
done 3<"$QUILT_SERIES"
|
||||||
|
|
Loading…
Reference in a new issue