Skip to content

Commit

Permalink
format-patch/commit: Quote single quote in the author name properly.
Browse files Browse the repository at this point in the history
Noticed by Kyle McMartin.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Jan 6, 2006
1 parent 81214e4 commit aa66c7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions git-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ then
then
pick_author_script='
/^author /{
s/'\''/'\''\\'\'\''/g
h
s/^author \([^<]*\) <[^>]*> .*$/\1/
s/'\''/'\''\'\'\''/g
Expand Down
1 change: 1 addition & 0 deletions git-format-patch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ titleScript='

whosepatchScript='
/^author /{
s/'\''/'\''\\'\'\''/g
s/author \(.*>\) \(.*\)$/au='\''\1'\'' ad='\''\2'\''/p
q
}'
Expand Down

0 comments on commit aa66c7e

Please sign in to comment.