hudson.plugins.git.GitException: Could not checkout null with start point 21d457224673682f2879170c504750db98638d2e

Jenkins JIRA | Sebastian Schuberth | 3 years ago
  1. 0

    There seems to be a problem related to the core.symlinks config option. Usually, if core.symlinks is not set (the default), Git will probe the target file system for symlinks support when cloning (see [1]). As Windows does not support symlinks in the POSIX sense, Git for Windows internally uses core.symlinks=false if that option is otherwise unset. However, relying on this results in this error for me (see [2]): {code} Cloning the remote Git repository Cloning repository git://github.com/sschuberth/git.git Fetching upstream changes from git://github.com/sschuberth/git.git Checking out Revision 21d457224673682f2879170c504750db98638d2e (origin/master) FATAL: Could not checkout null with start point 21d457224673682f2879170c504750db98638d2e hudson.plugins.git.GitException: Could not checkout null with start point 21d457224673682f2879170c504750db98638d2e at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.checkoutBranch(CliGitAPIImpl.java:1222) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:870) at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:117) at hudson.model.AbstractProject.checkout(AbstractProject.java:1376) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:655) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:560) at hudson.model.Run.execute(Run.java:1592) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) Caused by: hudson.plugins.git.GitException: Command "git checkout -f 21d457224673682f2879170c504750db98638d2e" returned status code 1: stdout: stderr: error: unable to create symlink RelNotes (Function not implemented) Note: checking out '21d457224673682f2879170c504750db98638d2e'. {code} Directly using Git from the command line on the server works fine to clone the repository, I do not get any errors about being unable to create symlinks then. The error in Jenkins disappears when I explicitly do "git config --system core.symlinks false" on the build server (see [3]). [1] http://stackoverflow.com/a/11664406/1127485 [2] http://mingwgitdevenv.cloudapp.net/job/mingwGitDevEnv-test-git/32/console [3] http://mingwgitdevenv.cloudapp.net/job/mingwGitDevEnv-test-git/33/consoleFull

    Jenkins JIRA | 3 years ago | Sebastian Schuberth
    hudson.plugins.git.GitException: Could not checkout null with start point 21d457224673682f2879170c504750db98638d2e
  2. 0

    There seems to be a problem related to the core.symlinks config option. Usually, if core.symlinks is not set (the default), Git will probe the target file system for symlinks support when cloning (see [1]). As Windows does not support symlinks in the POSIX sense, Git for Windows internally uses core.symlinks=false if that option is otherwise unset. However, relying on this results in this error for me (see [2]): {code} Cloning the remote Git repository Cloning repository git://github.com/sschuberth/git.git Fetching upstream changes from git://github.com/sschuberth/git.git Checking out Revision 21d457224673682f2879170c504750db98638d2e (origin/master) FATAL: Could not checkout null with start point 21d457224673682f2879170c504750db98638d2e hudson.plugins.git.GitException: Could not checkout null with start point 21d457224673682f2879170c504750db98638d2e at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.checkoutBranch(CliGitAPIImpl.java:1222) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:870) at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:117) at hudson.model.AbstractProject.checkout(AbstractProject.java:1376) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:655) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:560) at hudson.model.Run.execute(Run.java:1592) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) Caused by: hudson.plugins.git.GitException: Command "git checkout -f 21d457224673682f2879170c504750db98638d2e" returned status code 1: stdout: stderr: error: unable to create symlink RelNotes (Function not implemented) Note: checking out '21d457224673682f2879170c504750db98638d2e'. {code} Directly using Git from the command line on the server works fine to clone the repository, I do not get any errors about being unable to create symlinks then. The error in Jenkins disappears when I explicitly do "git config --system core.symlinks false" on the build server (see [3]). [1] http://stackoverflow.com/a/11664406/1127485 [2] http://mingwgitdevenv.cloudapp.net/job/mingwGitDevEnv-test-git/32/console [3] http://mingwgitdevenv.cloudapp.net/job/mingwGitDevEnv-test-git/33/consoleFull

    Jenkins JIRA | 3 years ago | Sebastian Schuberth
    hudson.plugins.git.GitException: Could not checkout null with start point 21d457224673682f2879170c504750db98638d2e
  3. 0

    Checkout fails if base branch has been modified

    GitHub | 3 years ago | michaelpj
    hudson.plugins.git.GitException: Could not checkout null with start point 535a3ae146eba90c6033042c9772ac1de32a483f
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Trouble with Jenkins and Git

    Stack Overflow | 3 years ago | user2704561
    hudson.plugins.git.GitException: Could not checkout null with start point <Starting Point>
  6. 0

    Trouble with Jenkins and Git

    gojuyou.com | 1 year ago
    hudson.plugins.git.GitException: Could not checkout null with start point <Starting Point>

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. hudson.plugins.git.GitException

      Could not checkout null with start point 21d457224673682f2879170c504750db98638d2e

      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.checkoutBranch()
    2. org.jenkinsci.plugins
      CliGitAPIImpl.checkoutBranch
      1. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.checkoutBranch(CliGitAPIImpl.java:1222)
      1 frame
    3. Hudson GIT plugin
      GitSCM.checkout
      1. hudson.plugins.git.GitSCM.checkout(GitSCM.java:870)
      1 frame
    4. org.jenkinsci.plugins
      MultiSCM.checkout
      1. org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:117)
      1 frame
    5. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:1376)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:655)
      2 frames
    6. jenkins.scm
      SCMCheckoutStrategy.checkout
      1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
      1 frame
    7. Hudson
      Executor.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:560)
      2. hudson.model.Run.execute(Run.java:1592)
      3. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      4. hudson.model.ResourceController.execute(ResourceController.java:88)
      5. hudson.model.Executor.run(Executor.java:237)
      5 frames