Browse Source

format-patch/commit: Quote single quote in the author name properly.

Noticed by Kyle McMartin.

Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
Junio C Hamano 19 years ago
parent
commit
aa66c7ec77
  1. 1
      git-commit.sh
  2. 1
      git-format-patch.sh

1
git-commit.sh

@ -165,6 +165,7 @@ then @@ -165,6 +165,7 @@ then
then
pick_author_script='
/^author /{
s/'\''/'\''\\'\'\''/g
h
s/^author \([^<]*\) <[^>]*> .*$/\1/
s/'\''/'\''\'\'\''/g

1
git-format-patch.sh

@ -173,6 +173,7 @@ titleScript=' @@ -173,6 +173,7 @@ titleScript='

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

Loading…
Cancel
Save