format-patch/commit: Quote single quote in the author name properly.
Noticed by Kyle McMartin. Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
81214e4ddf
commit
aa66c7ec77
@ -165,6 +165,7 @@ then
|
|||||||
then
|
then
|
||||||
pick_author_script='
|
pick_author_script='
|
||||||
/^author /{
|
/^author /{
|
||||||
|
s/'\''/'\''\\'\'\''/g
|
||||||
h
|
h
|
||||||
s/^author \([^<]*\) <[^>]*> .*$/\1/
|
s/^author \([^<]*\) <[^>]*> .*$/\1/
|
||||||
s/'\''/'\''\'\'\''/g
|
s/'\''/'\''\'\'\''/g
|
||||||
|
@ -173,6 +173,7 @@ titleScript='
|
|||||||
|
|
||||||
whosepatchScript='
|
whosepatchScript='
|
||||||
/^author /{
|
/^author /{
|
||||||
|
s/'\''/'\''\\'\'\''/g
|
||||||
s/author \(.*>\) \(.*\)$/au='\''\1'\'' ad='\''\2'\''/p
|
s/author \(.*>\) \(.*\)$/au='\''\1'\'' ad='\''\2'\''/p
|
||||||
q
|
q
|
||||||
}'
|
}'
|
||||||
|
Loading…
Reference in New Issue
Block a user