Subject: | do_init off by 1 error |
Hi. I was playing with SVN::Push 0.02 and found the following problem.
In the svnpush script, in the function do_init(), you have:
die "$0 init <source> <target>" unless $#_ == 1;
my ($source, $target) = @_
But the call in main: &$cmdsub(\%options, @ARGV)
sends options first, so do_init() should say something like:
die "$0 init <source> <target>" unless $#_ == 2;
my ($source, $target) = ($_[1], $_[2])
It looks like the current do_init() cannot work the way it is.
Anyway, I don't know if you are still working on this, since the
last update was in March, but I thought I should mention it.
This kind of repository mirroring functionality could be very
useful, so I'm wondering if you plan to keep working on it.
Thanks.