diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/URIish.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/URIish.java index b9fdf0160..c9bb89a43 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/URIish.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/URIish.java @@ -738,7 +738,8 @@ public class URIish implements Serializable { else if (result.endsWith(Constants.DOT_GIT_EXT)) result = result.substring(0, result.length() - Constants.DOT_GIT_EXT.length()); - if (("file".equals(scheme) || LOCAL_FILE.matcher(s).matches()) + if (("file".equals(scheme) || LOCAL_FILE.matcher(s) //$NON-NLS-1$ + .matches()) && result.endsWith(Constants.DOT_BUNDLE_EXT)) { result = result.substring(0, result.length() - Constants.DOT_BUNDLE_EXT.length());