hudson.plugins.git.GitException: Command "git fetch -t origin +refs/heads/*:refs/remotes/origin/*" returned status code 1: stdout: stderr: error: unable to resolve reference refs/remotes/origin/foo/bar/blah: Not a directory From ssh://stash.teslamotors.com:7999/FW/firmware ! [new branch] foo/bar/blah -> origin/foo/bar/blah (unable to update local ref) error: some local refs could not be updated; try running 'git remote prune origin' to remove any old, conflicting branches

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via jenkins-ci.org by Unknown author

Our Jenkins(J) is linked with Bitbucket(BB). A pull request(PR) is created in BB, then it's auto-built in J, then it's updated with a commit but BB doesn't update the branch, so J can't check it out. Solution: open the PR in BB web ui.

Solutions on the web

via Jenkins JIRA by Karl Ostmo, 1 year ago
Command "git fetch -t origin +refs/heads/*:refs/remotes/origin/*" returned status code 1: stdout: stderr: error: unable to resolve reference refs/remotes/origin/foo/bar/blah: Not a directory From ssh://stash.teslamotors.com:7999/FW/firmware ! [new
via Jenkins JIRA by Karl Ostmo, 1 year ago
Command "git fetch -t origin +refs/heads/*:refs/remotes/origin/*" returned status code 1: stdout: stderr: error: unable to resolve reference refs/remotes/origin/foo/bar/blah: Not a directory From ssh://stash.teslamotors.com:7999/FW/firmware ! [new
via gmane.org by Unknown author, 2 years ago
Command "git fetch -t origin +refs *:refs/remotes *" returned status code 1: stdout: stderr: error: Ref refs/remotes/origin/2.7.x is at 029542108b28786cdb9909d53f040aeaff8c0cac but expected 531aea6a7cf061992504fbe03ab4241453906a99 >From git://github.com/geoserver/geoserver ! 531aea6..0295421 2.7.x -> origin/2.7.x (unable to update local ref)
via nabble.com by Unknown author, 2 years ago
Command "git fetch -t origin +refs/heads/*:refs/remotes/origin/*" returned status code 1: stdout: stderr: error: Ref refs/remotes/origin/2.7.x is at 029542108b28786cdb9909d53f040aeaff8c0cac but expected 531aea6a7cf061992504fbe03ab4241453906a99 >From git://github.com/geoserver/geoserver  ! 531aea6..0295421  2.7.x      -> origin/2.7.x  (unable to update local ref)
via Stack Overflow by DTI-Matt
, 2 years ago
Error performing command: C:\Program Files (x86)\Git\bin\git.exe fetch -t origin +refs/heads/*:refs/remotes/origin/*
via Google Groups by Unknown author, 5 months ago
Command "git.exe fetch -t origin +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: error: The requested URL returned error: 403 while accessing https://github.com/stan-dev/stan.git/info/refs fatal: HTTP request failed
hudson.plugins.git.GitException: Command "git fetch -t origin +refs/heads/*:refs/remotes/origin/*" returned status code 1: stdout: stderr: error: unable to resolve reference refs/remotes/origin/foo/bar/blah: Not a directory From ssh://stash.teslamotors.com:7999/FW/firmware ! [new branch] foo/bar/blah -> origin/foo/bar/blah (unable to update local ref) error: some local refs could not be updated; try running 'git remote prune origin' to remove any old, conflicting branches
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:774)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:740)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.fetch(CliGitAPIImpl.java:161)
at hudson.plugins.git.GitAPI.fetch(GitAPI.java:230)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:796)
at hudson.plugins.git.GitSCM.access$000(GitSCM.java:60)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:988)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)

Users with the same issue

Once, 2 weeks ago
Samebug visitor profile picture
Unknown user
Once, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.