# HG changeset patch # User Chris Cannam # Date 1282734468 -3600 # Node ID 2c10dc5f122da9c1609e8c7cbf2f9d92bd759cfc # Parent 0c83d98252d94a201125f654debea7959b254a50 * Avoid failure for root of repo tree (no $repo) diff -r 0c83d98252d9 -r 2c10dc5f122d extra/svn/SoundSoftware.pm --- a/extra/svn/SoundSoftware.pm Thu Aug 12 15:31:37 2010 +0100 +++ b/extra/svn/SoundSoftware.pm Wed Aug 25 12:07:48 2010 +0100 @@ -338,6 +338,9 @@ my $location = $r->location; my ($repo) = $r->uri =~ m{$location/*([^/]+)}; + + return $repo if (!$repo); + $repo =~ s/[^a-zA-Z0-9\._-]//g; # The original Redmine.pm returns the string just calculated as