mf69 / svnspam

Produce e-mail reports for svn commits showing log and diff output
GNU General Public License v2.0
0 stars 0 forks source link

Problems where svnspam is waiting for STDIN #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Looks like svnspam.rb is expecting some sort of STDIN input at line 1340 in
the posted version on Google:

    1340: reader = LogReader.new($stdin)

The behavior is that when testing this at the command line, things simple
hang at line 211 waiting for some sort of user input.

    211: @line = @io.gets

In addition, since there is no open STDIN from the Subversion hook, the
script fails silently.

I changed this to the following and everything works fine now.

    1340: reader = LogReader.new(File.open($logfile, "r"))

Cheers!

Original issue reported on code.google.com by knitt...@gmail.com on 29 Dec 2008 at 8:29

GoogleCodeExporter commented 9 years ago
Committed revision 4 with this change. Thanks!

Original comment by m...@foster.cc on 31 Dec 2008 at 4:10

GoogleCodeExporter commented 9 years ago

Original comment by m...@foster.cc on 31 Dec 2008 at 4:42