* "fatal: reference is not a tree:" on git checkout <branch>
@ 2013-07-26 9:52 David Abdurachmanov
2013-07-26 11:46 ` Duy Nguyen
0 siblings, 1 reply; 2+ messages in thread
From: David Abdurachmanov @ 2013-07-26 9:52 UTC (permalink / raw)
To: git
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: "fatal: reference is not a tree:" on git checkout <branch>
2013-07-26 9:52 "fatal: reference is not a tree:" on git checkout <branch> David Abdurachmanov
@ 2013-07-26 11:46 ` Duy Nguyen
0 siblings, 0 replies; 2+ messages in thread
From: Duy Nguyen @ 2013-07-26 11:46 UTC (permalink / raw)
To: David Abdurachmanov; +Cc: Git Mailing List
On Fri, Jul 26, 2013 at 4:52 PM, David Abdurachmanov
<david.abd@gmail.com> wrote:
> 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?
"Bad" naming. It interprets the branch name as something-gHEX like the
output from git-describe. Coincidently "cc48" is an umambiguous short
sha-1. check_tracking_name, which prefix "origin/" in, never has a
chance to run.
We should probably check in get_describe_name() that the returned
value is a commit or a tag, but that doesn't really solve the problem.
I think check_tracking_name should have higher priority than
get_describe_name()..
--
Duy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-26 11:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-26 9:52 "fatal: reference is not a tree:" on git checkout <branch> David Abdurachmanov
2013-07-26 11:46 ` Duy Nguyen
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).