Re: Why is git clone not checking out files?
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Jan 30, 2007, 18:49 UTC
- Message-ID
- <200701301950.00195.jnareb@gmail.com>
- In-Reply-To
- <Pine.LNX.4.64.0701301040200.3611@woody.linux-foundation.org>
Linus Torvalds wrote:
Show 20 quoted lines
> On Tue, 30 Jan 2007, Bill Lear wrote: >> >> % cd /repos/git/project >> % ls >> branches description HEAD info refs >> config FETCH_HEAD hooks objects remotes >> % cat HEAD >> ref: refs/heads/master > > Ok, HEAD points to "master". > >> This repository was created like this: >> >> % mkdir /repos/git/project >> % cd /repos/git/project >> % git --bare init-db --shared >> % GIT_DIR=. git fetch git://xiphi/public/project topic:topic > > ...but you don't _have_ any such branch. You only have a "topic" > branch.
...so "git clone" tries to checkout HEAD -> refs/heads/master branch, which does not exist. It is strange that git does not report error or at least warning, though...
-- Jakub Narebski Poland