git/list[1] front-page[2] threads[3] people[4] search[5] about
 

"fatal: reference is not a tree:" on git checkout <branch>

From
DADavid Abdurachmanov <david.abd@gmail.com>
Date
Jul 26, 2013, 09:52 UTC
Message-ID
<CC257523-1C84-4F73-9AB0-D1B5A5ECDC45@gmail.com>
Hi,
Reproduce:

$ git clone https://github.com/cms-sw/cmsdist.git $ git branch -a | grep devel-gcc48 remotes/origin/IB/CMSSW_7_0_X/devel-gcc48 $ git checkout IB/CMSSW_7_0_X/devel-gcc48 fatal: reference is not a tree: IB/CMSSW_7_0_X/devel-gcc48

It has stopped to work with the last pull request. All the references on Google talk about submodules, which I don't use. Any ideas what could be causing this issue?

You can get into detached state by: $ git checkout origin/IB/CMSSW_7_0_X/devel-gcc48

You also can checkout a branch by doing:
$ git clone -b IB/CMSSW_7_0_X/devel-gcc48 https://github.com/cms-sw/cmsdist.git
$ git branch
* IB/CMSSW_7_0_X/devel-gcc48

Thanks, david

Next: Duy Nguyen
Message 1 of 2 in “"fatal: reference is not a tree:" on git checkout <branch>”
  1. David AbdurachmanovJul 26, 2013
  2. Duy NguyenJul 26, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.