Mercurial > hg > soundsoftware-site
changeset 10:2c10dc5f122d yuya
* Avoid failure for root of repo tree (no $repo)
author | Chris Cannam |
---|---|
date | Wed, 25 Aug 2010 12:07:48 +0100 |
parents | 0c83d98252d9 |
children | e297bf495063 |
files | extra/svn/SoundSoftware.pm |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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