diff options
| author | Junio C Hamano <junkio@cox.net> | 2006-01-05 19:50:37 -0800 |
|---|---|---|
| committer | Junio C Hamano <junkio@cox.net> | 2006-01-05 20:02:33 -0800 |
| commit | aa66c7ec77d474b737da607d6cb2d07f56628def (patch) | |
| tree | b8090092fd2c9fe9b5365332ee7d421233c14403 | |
| parent | git-fetch --tags: reject malformed tags. (diff) | |
| download | git-aa66c7ec77d474b737da607d6cb2d07f56628def.tar.gz git-aa66c7ec77d474b737da607d6cb2d07f56628def.zip | |
format-patch/commit: Quote single quote in the author name properly.
Noticed by Kyle McMartin.
Signed-off-by: Junio C Hamano <junkio@cox.net>
| -rwxr-xr-x | git-commit.sh | 1 | ||||
| -rwxr-xr-x | git-format-patch.sh | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/git-commit.sh b/git-commit.sh index 82d743bd03..193feeb5e4 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 daa3caea77..818059f242 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 }' |
