[MRM-371] Unable to add a remote repository

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@544773 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Fabrice Bellingard 2007-06-06 08:59:27 +00:00
parent 2cba9744f8
commit f814cbad98
1 changed files with 4 additions and 1 deletions

View File

@ -273,7 +273,10 @@ public class ConfigureRepositoryAction
// Fix the URL entry (could possibly be a filesystem path)
String rawUrlEntry = repository.getUrl();
repository.setUrl( PathUtil.toUrl( rawUrlEntry ) );
if ( !rawUrlEntry.startsWith( "http://" ) )
{
repository.setUrl( PathUtil.toUrl( rawUrlEntry ) );
}
if ( repository.isManaged() )
{