aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgit-commit.sh1
-rwxr-xr-xgit-format-patch.sh1
2 files changed, 2 insertions, 0 deletions
diff --git a/git-commit.sh b/git-commit.sh
index 82d743bd0..193feeb5e 100755
--- a/git-commit.sh
+++ b/git-commit.sh
@@ -165,6 +165,7 @@ then
then
pick_author_script='
/^author /{
+ s/'\''/'\''\\'\'\''/g
h
s/^author \([^<]*\) <[^>]*> .*$/\1/
s/'\''/'\''\'\'\''/g
diff --git a/git-format-patch.sh b/git-format-patch.sh
index daa3caea7..818059f24 100755
--- a/git-format-patch.sh
+++ b/git-format-patch.sh
@@ -173,6 +173,7 @@ titleScript='
whosepatchScript='
/^author /{
+ s/'\''/'\''\\'\'\''/g
s/author \(.*>\) \(.*\)$/au='\''\1'\'' ad='\''\2'\''/p
q
}'