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

Git2 shallow clone doesn't work with git command

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • git-plugin
    • windows

      Set project to use git command not jGit
      Try to configure a project to use shallow clone,
      project tryies to shallow clone but recieves the following error:

      Cloning the remote Git repository
      Using shallow clone
      FATAL: null
      java.lang.NullPointerException
      at org.jenkinsci.plugins.gitclient.RemoteGitImpl$Invocation.<init>(RemoteGitImpl.java:71)
      at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:130)
      at $Proxy57.shallow(Unknown Source)
      at hudson.plugins.git.extensions.impl.CloneOption.decorateCloneCommand(CloneOption.java:42)
      at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:796)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:831)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1408)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581)
      at hudson.model.Run.execute(Run.java:1603)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:247)

          [JENKINS-19305] Git2 shallow clone doesn't work with git command

          David Corbett created issue -
          Kohsuke Kawaguchi made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 150753 ] New: JNJira + In-Review [ 193656 ]
          Mark Waite made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            ndeloof Nicolas De Loof
            dcorbett David Corbett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: