-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Platform: PC, OS: Windows 2000
"After the fact tagging" is broken when using the CVS plugin and specifying a job with only one
cvs module (flatten) if the module name contains spaces.
I've identified the problem to origin from the way that the cvs-zip-archive is generated during
checkout. When only one cvs-module is specified, the name of the module is used "as is" directly
from the field "module", hence still containing the backslash "space-escape"-character. This is in
contrast to when multiple cvs modules is specified, in which case all the modules are normalized
before calling the archive-function. (This asymmetry probably explains why issue #691 has been
closed as invalid while actually still an issue when only using a single cvs module).
The fix to this issue (as far as I've been able to test it) is to use
"getAllModulesNormalized()[0]" instead of the field 'modules' in line 377 of
"hudson.scm.CVSSCM.java":
[ORG]
line 376 if(flatten) { line 377 archive(ws, module, zos,true); line 378 } else {
[NEW]
line 376 if(flatten) { line 377 archive(ws, getAllModulesNormalized()[0], zos,true); line 378 } else {