From 376aedd9e48f64a7ad07135d2e9f62c808e2ce1a Mon Sep 17 00:00:00 2001 From: ltheussl Date: Wed, 7 Dec 2005 23:09:03 +0000 Subject: [PATCH] PR: MPSCM-65 Submitted by: Phil Steitz When pom.repository.connection ends with '/' checkout fails. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@354895 13f79535-47bb-0310-9956-ffa450edef68 --- scm/src/main/org/apache/maven/plugins/scm/ScmBean.java | 4 ++++ scm/xdocs/changes.xml | 1 + 2 files changed, 5 insertions(+) diff --git a/scm/src/main/org/apache/maven/plugins/scm/ScmBean.java b/scm/src/main/org/apache/maven/plugins/scm/ScmBean.java index f219ab0f..f4ae3c4c 100644 --- a/scm/src/main/org/apache/maven/plugins/scm/ScmBean.java +++ b/scm/src/main/org/apache/maven/plugins/scm/ScmBean.java @@ -107,6 +107,10 @@ public class ScmBean if ( repository.getProvider().equals( "svn" ) ) { + if ( url.endsWith("/") ) + { + repository = scmManager.makeScmRepository( url.substring(0, url.length() - 1 )); + } SvnScmProviderRepository svnRepo = (SvnScmProviderRepository) repository.getProviderRepository(); if ( username != null && username.length() > 0 ) diff --git a/scm/xdocs/changes.xml b/scm/xdocs/changes.xml index 098d9727..964655d0 100644 --- a/scm/xdocs/changes.xml +++ b/scm/xdocs/changes.xml @@ -25,6 +25,7 @@ + When pom.repository.connection ends with '/' checkout fails. Re-add changes.xml file to display announcements. Update to released version of maven-scm. New scm:checkin goal.