Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-1306

isUpdatable always returns false when 'This is a tag, not a branch' is on

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • cvs-plugin
    • None
    • Platform: All, OS: All

      Method isUpdatable in class hudson.scm.CVSSCM returns false because file CVS/Tag
      starts with N instead of T if tag is checked out.

      For tag 'T'+branch should be replaced with 'N'+branch in this line:
      http://fisheye5.cenqua.com/browse/hudson/hudson/main/core/src/main/java/hudson/scm/CVSSCM.java?r=1.81#l581

          [JENKINS-1306] isUpdatable always returns false when 'This is a tag, not a branch' is on

          Created an attachment (id=179)
          The patch which fixed this bug for me

          Vaidas Nargėlas added a comment - Created an attachment (id=179) The patch which fixed this bug for me

          evernat added a comment -

          duplicate of JENKINS-1471 which is already fixed.
          A similar change as your patch has been applied by Kohsuke some time ago:
          https://github.com/jenkinsci/jenkins/commit/cddad997cc59abc958eddbbb98ca27a81c209ebe#core/src/main/java/hudson/scm/CVSSCM.java

          evernat added a comment - duplicate of JENKINS-1471 which is already fixed. A similar change as your patch has been applied by Kohsuke some time ago: https://github.com/jenkinsci/jenkins/commit/cddad997cc59abc958eddbbb98ca27a81c209ebe#core/src/main/java/hudson/scm/CVSSCM.java

            Unassigned Unassigned
            vaidasn Vaidas Nargėlas
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: