mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
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:
1 parent
92b94a3af2
commit
8e879f0211
1 file changed
+9
-1
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user