{"thread":{"id":"34541","subject":"\"fatal: reference is not a tree:\" on git checkout <branch>","startedAt":"2013-07-26T09:52:32Z","lastAt":"2013-07-26T11:46:38Z","messageCount":2,"participants":["David Abdurachmanov","Duy Nguyen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"224117","messageId":"CC257523-1C84-4F73-9AB0-D1B5A5ECDC45@gmail.com","threadId":"34541","inReplyTo":null,"subject":"\"fatal: reference is not a tree:\" on git checkout <branch>","fromName":"David Abdurachmanov","fromEmail":"david.abd@gmail.com","sentAt":"2013-07-26T09:52:32Z","receivedAt":"2013-07-26T09:52:32Z","isPatch":false,"sender":{"key":"david.abd@gmail.com","avatar":null},"body":"Hi,\n\nReproduce:\n\n$ git clone https://github.com/cms-sw/cmsdist.git\n$ git branch -a | grep devel-gcc48\nremotes/origin/IB/CMSSW_7_0_X/devel-gcc48\n$ git checkout IB/CMSSW_7_0_X/devel-gcc48\nfatal: reference is not a tree: IB/CMSSW_7_0_X/devel-gcc48\n\nIt has stopped to work with the last pull request. All the references on Google \ntalk about submodules, which I don't use. Any ideas what could be causing this\nissue?\n\nYou can get into detached state by:\n$ git checkout origin/IB/CMSSW_7_0_X/devel-gcc48 \n\nYou also can checkout a branch by doing:\n$ git clone -b IB/CMSSW_7_0_X/devel-gcc48 https://github.com/cms-sw/cmsdist.git\n$ git branch\n* IB/CMSSW_7_0_X/devel-gcc48\n\nThanks,\ndavid"},{"id":"224122","messageId":"CACsJy8BWnrH2J+BhG09BpfzMUFw=-XirP7EAa3QKuXtbvQr18Q@mail.gmail.com","threadId":"34541","inReplyTo":"CC257523-1C84-4F73-9AB0-D1B5A5ECDC45@gmail.com","subject":"Re: \"fatal: reference is not a tree:\" on git checkout <branch>","fromName":"Duy Nguyen","fromEmail":"pclouds@gmail.com","sentAt":"2013-07-26T11:46:38Z","receivedAt":"2013-07-26T11:46:38Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Fri, Jul 26, 2013 at 4:52 PM, David Abdurachmanov\n<david.abd@gmail.com> wrote:\n> Hi,\n>\n> Reproduce:\n>\n> $ git clone https://github.com/cms-sw/cmsdist.git\n> $ git branch -a | grep devel-gcc48\n> remotes/origin/IB/CMSSW_7_0_X/devel-gcc48\n> $ git checkout IB/CMSSW_7_0_X/devel-gcc48\n> fatal: reference is not a tree: IB/CMSSW_7_0_X/devel-gcc48\n>\n> It has stopped to work with the last pull request. All the references on Google\n> talk about submodules, which I don't use. Any ideas what could be causing this\n> issue?\n\n\"Bad\" naming. It interprets the branch name as something-gHEX like the\noutput from git-describe. Coincidently \"cc48\" is an umambiguous short\nsha-1. check_tracking_name, which prefix \"origin/\" in, never has a\nchance to run.\n\nWe should probably check in get_describe_name() that the returned\nvalue is a commit or a tag, but that doesn't really solve the problem.\nI think check_tracking_name should have higher priority than\nget_describe_name()..\n-- \nDuy\n"}]}