496: git-lrde: Ignore quotes in email address.

Ignore quotes from the email variable :to in the vcs helper file. * trunk/src/git-lrde: here. --- trunk/ChangeLog | 8 ++++++++ trunk/src/git-lrde | 1 + 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/trunk/ChangeLog b/trunk/ChangeLog index d8f8f7b..f8bac72 100644 --- a/trunk/ChangeLog +++ b/trunk/ChangeLog @@ -1,3 +1,11 @@ +Tue Feb 17 01:48:10 2009 +0100 Vincent Ordy <ordy@lrde.epita.fr> + + git-lrde: Ignore quotes in email address. + +Ignore quotes from the email variable :to in the vcs helper file. + + * trunk/src/git-lrde: here. + 2009-02-17 Vincent Ordy <vincent.ordy@gmail.com> Add Git hooks. diff --git a/trunk/src/git-lrde b/trunk/src/git-lrde index d46cd77..efb62db 100755 --- a/trunk/src/git-lrde +++ b/trunk/src/git-lrde @@ -119,6 +119,7 @@ lrde_send_email() for f in . .. ../.. ../../..; do test -f "$f"/vcs/*.rb || continue recipient=`sed -n 's/.*mail.*\[\(.*@.*\)\].*/\1/p' "$f"/vcs/*.rb` + recipient=$(echo "$recipient" | sed "s/['\"]//g") test -z "$recipient" || break done if test -z "$recipient"; then -- 1.5.6.5
participants (1)
-
Vincent Ordy