Working around a bug in CVS affecting incremental builds with local repositories.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2900 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
jglick committed 2007-04-06 22:53:28 +00:00
1 parent 92b94a3af2
commit 8e879f0211
1 file changed
+9 -1
+9 -1
View File
@@ -642,7 +642,15 @@ public class CVSSCM extends AbstractCVSFamilySCM implements Serializable {
task.setDir(ws);
if(cvspassFile.length()!=0)
task.setPassfile(new File(cvspassFile));
task.setCvsRoot(cvsroot);
if (canUseUpdate && cvsroot.startsWith("/")) {
// cvs log of built source trees unreliable in local access method:
// https://savannah.nongnu.org/bugs/index.php?15223
task.setCvsRoot(":fork:" + cvsroot);
} else if (canUseUpdate && cvsroot.startsWith(":local:")) {
task.setCvsRoot(":fork:" + cvsroot.substring(7));
} else {
task.setCvsRoot(cvsroot);
}
task.setCvsRsh(cvsRsh);
task.setFailOnError(true);
task.setDeststream(new BufferedOutputStream(out));