From f855c5ee220969b09b686e8c80086d90fc7ea953 Mon Sep 17 00:00:00 2001 From: mindless Date: Fri, 30 Apr 2010 21:57:24 +0000 Subject: [PATCH] [HUDSON-5951] yay for tests, fix error in new normalize() before it went in any release git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30579 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/FilePath.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/hudson/FilePath.java b/core/src/main/java/hudson/FilePath.java index 9ba406daf1..dd372da177 100644 --- a/core/src/main/java/hudson/FilePath.java +++ b/core/src/main/java/hudson/FilePath.java @@ -273,7 +273,7 @@ public final class FilePath implements Serializable { } else { // Normalize: remove something/.. plus separator before/after i -= 2; - for (int j = 0; j < 2; j++) tokens.remove(i); + for (int j = 0; j < 3; j++) tokens.remove(i); if (i > 0) tokens.remove(i-1); else if (tokens.size() > 0) tokens.remove(0); }