You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jason Forkey <ja...@forkey.net> on 2007/04/25 16:11:01 UTC

commit-email.pl hook script broken when using -m switch

Hi,

I attempted to run the commit-email.pl script from within the post-commit hook.
This is the command line I put in post-commit.

commit-email.pl "$REPOS" "$REV" -m scratch -h subvserver  jforkey@work.com

When doing an svn commit I get this error from commit-email.pl:
use of either `-h' or `--from' is mandatory when sending email using direct SMTP

After a little debugging it seems that the problem is with the -m argument.  It
works fine without specifying any -m expressions.  I am running version 1.4.3 of
subversion and haven't modified the commit-email.pl script from its default
behavior (I am using $smtp_server = "127.0.0.1";)

I ran the script in the debugger far enough that I think I see the problem.  The
@project_settings_list array contains the initial default project and my
"scratch" project.  The hostname gets added to the scratch project but not the
default projec, when the default project is checked, the error is produced.