File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/main/java/hudson/plugins/git Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 7878import java .io .Serializable ;
7979import java .io .Writer ;
8080import java .nio .file .Files ;
81+ import java .nio .file .InvalidPathException ;
8182import java .nio .file .Paths ;
8283import java .text .MessageFormat ;
8384import java .util .AbstractList ;
104105import hudson .Util ;
105106import hudson .plugins .git .extensions .impl .ScmName ;
106107import hudson .util .LogTaskListener ;
107- import java .nio .file .InvalidPathException ;
108108import java .util .Map .Entry ;
109109import java .util .regex .Matcher ;
110110import java .util .regex .Pattern ;
@@ -1409,8 +1409,7 @@ void abortIfSourceIsLocal() throws AbortException {
14091409 private static boolean isRemoteUrlValid (String remoteUrl ) {
14101410 if (remoteUrl == null ) {
14111411 return true ;
1412- }
1413- if (remoteUrl .toLowerCase (Locale .ENGLISH ).startsWith ("file://" )) {
1412+ } else if (remoteUrl .toLowerCase (Locale .ENGLISH ).startsWith ("file://" )) {
14141413 return false ;
14151414 }
14161415 try {
You can’t perform that action at this time.
0 commit comments