SVN post-commit fails when log message contains an apostrophe

Subscribe to SVN post-commit fails when log message contains an apostrophe 4 post(s), 2 voice(s)

 
Avatar pjkelly 4 post(s)

I’m not sure if this is something that should be dealt with in the actual post-commit script or at the lighthouse level, but anytime I have an apostrophe in my svn log message, the changeset fails to post to lighthouse. Anybody have any thoughts on this?

 
Avatar rick Administator 546 post(s)

What’s the error message? What’s the XML look like that’s being sent to Lighthouse?

 
Avatar pjkelly 4 post(s)

I’m not getting an error message at all. nothing is ever sent to the log file either. when i run the script from the command line though with

puts changeset_xml

in it, I get the following output:

<changeset>
<title>pj committed changeset [52]</title>
<body>Testing to see if ’ breaks posting to lighthouse</body>
<changes>

– U
- trunk/www/app/views/home/splash.rhtml
</changes>
<revision>52</revision>
<changed-at type="datetime">2007-06-12 20:15:30 -0400</changed-at>
</changeset>
 
Avatar rick Administator 546 post(s)

Check out the latest version of the script. It’s been rewritten to use Net/HTTP instead of shelling out to curl (what an idiotic idea). Thanks goes to James Cox for knocking some sense into me.