mirror of https://github.com/apache/archiva.git
[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:
parent
2cba9744f8
commit
f814cbad98
|
@ -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() )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue