summaryrefslogtreecommitdiff
path: root/git-filter-branch.sh
diff options
context:
space:
mode:
authorStephen Boyd <bebarino@gmail.com>2010-01-26 23:08:31 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-01-26 23:16:54 (GMT)
commit9524cf29930b4f91d68ad1384d7f984393a54c15 (patch)
treefec23ec235813a482b7d3d9e2bf187c9ddd8b2ef /git-filter-branch.sh
parent24072c0256a520408575416fe8706667b576ff99 (diff)
downloadgit-9524cf29930b4f91d68ad1384d7f984393a54c15.zip
git-9524cf29930b4f91d68ad1384d7f984393a54c15.tar.gz
git-9524cf29930b4f91d68ad1384d7f984393a54c15.tar.bz2
fix portability issues with $ in double quotes
Using a dollar sign in double quotes isn't portable. Escape them with a backslash or replace the double quotes with single quotes. Signed-off-by: Stephen Boyd <bebarino@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-filter-branch.sh')
-rwxr-xr-xgit-filter-branch.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-filter-branch.sh b/git-filter-branch.sh
index 195b5ef..81fd3db 100755
--- a/git-filter-branch.sh
+++ b/git-filter-branch.sh
@@ -462,11 +462,11 @@ if [ "$filter_tag_name" ]; then
"$new_sha1" "$new_ref"
git cat-file tag "$ref" |
sed -n \
- -e "1,/^$/{
+ -e '1,/^$/{
/^object /d
/^type /d
/^tag /d
- }" \
+ }' \
-e '/^-----BEGIN PGP SIGNATURE-----/q' \
-e 'p' ) |
git mktag) ||