format-patch/commit: Quote single quote in the author name properly.
authorJunio C Hamano <junkio@cox.net>
Fri, 6 Jan 2006 03:50:37 +0000 (19:50 -0800)
committerJunio C Hamano <junkio@cox.net>
Fri, 6 Jan 2006 04:02:33 +0000 (20:02 -0800)
Noticed by Kyle McMartin.

Signed-off-by: Junio C Hamano <junkio@cox.net>
git-commit.sh
git-format-patch.sh

index 82d743b..193feeb 100755 (executable)
@@ -165,6 +165,7 @@ then
        then
                pick_author_script='
                /^author /{
+                       s/'\''/'\''\\'\'\''/g
                        h
                        s/^author \([^<]*\) <[^>]*> .*$/\1/
                        s/'\''/'\''\'\'\''/g
index daa3cae..818059f 100755 (executable)
@@ -173,6 +173,7 @@ titleScript='
 
 whosepatchScript='
 /^author /{
+       s/'\''/'\''\\'\'\''/g
        s/author \(.*>\) \(.*\)$/au='\''\1'\'' ad='\''\2'\''/p
        q
 }'