From: Junio C Hamano Date: Fri, 6 Jan 2006 03:50:37 +0000 (-0800) Subject: format-patch/commit: Quote single quote in the author name properly. X-Git-Tag: v1.0.7^2~5 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=aa66c7ec77d474b737da607d6cb2d07f56628def;p=git.git format-patch/commit: Quote single quote in the author name properly. Noticed by Kyle McMartin. Signed-off-by: Junio C Hamano --- diff --git a/git-commit.sh b/git-commit.sh index 82d743bd..193feeb5 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 daa3caea..818059f2 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 }'