Git2 shallow clone doesn't work with git command

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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)

            Assignee:
            Nicolas De Loof
            Reporter:
            David Corbett
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: