summaryrefslogtreecommitdiff
path: root/git-quiltimport.sh
diff options
context:
space:
mode:
authorFrancis Daly <francis@daoine.org>2007-03-29 21:38:20 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-03-30 06:11:33 (GMT)
commitb275a0c9e742e4bbfed9794b1e477000440eaf6a (patch)
tree813760df877e00be7a415e401f75dfa9f55143ad /git-quiltimport.sh
parent6f01e6b37008e45efb2b17a027f045600a011e93 (diff)
downloadgit-b275a0c9e742e4bbfed9794b1e477000440eaf6a.zip
git-b275a0c9e742e4bbfed9794b1e477000440eaf6a.tar.gz
git-b275a0c9e742e4bbfed9794b1e477000440eaf6a.tar.bz2
git-quiltimport /bin/sh-ism fix
Bryan Wu reported /usr/local/bin/git-quiltimport: 114: Syntax error: Missing '))' Most bourne-ish shells I have here accept x=$((echo x)|cat) but all bourne-ish shells I have here accept x=$( (echo x)|cat) because $(( might mean arithmetic expansion. Signed-off-by: Francis Daly <francis@daoine.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-quiltimport.sh')
-rwxr-xr-xgit-quiltimport.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-quiltimport.sh b/git-quiltimport.sh
index 08ac9bb..edccd82 100755
--- a/git-quiltimport.sh
+++ b/git-quiltimport.sh
@@ -115,7 +115,7 @@ for patch_name in $(cat "$QUILT_PATCHES/series" | grep -v '^#'); do
if [ -z "$dry_run" ] ; then
git-apply --index -C1 "$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