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

Re: Why is git clone not checking out files?

From
Bill Lear <rael@zopyra.com>
Date
Jan 30, 2007, 18:29 UTC
Message-ID
<17855.36470.309129.391271@lisa.zopyra.com>
In-Reply-To
<20070130182237.GC26415@spearce.org>
On Tuesday, January 30, 2007 at 13:22:37 (-0500) Shawn O. Pearce writes:
Show 14 quoted lines
>Bill Lear <rael@zopyra.com> wrote:
>> Ok, well, I certainly did not issue git clone --bare, it was just a
>> plain ol' clone:
>> 
>> % git clone /repos/git/project
>> 
>> and no checkout ensued.  Can I fix this somehow?  I've tried the clone
>> several times with no success.  Is there anything I can check in the
>> source repo (the above /repos/git/project) to see why it would not be
>> working?
>
>I've seen this happen if HEAD in the source repository does not point
>at a branch, or points at a commit which doesn't exist.  Though I
>usually also see an error about how HEAD isn't a valid object name...
Hmm.

% cd /repos/git/project % ls branches description HEAD info refs config FETCH_HEAD hooks objects remotes % cat HEAD ref: refs/heads/master % cat FETCH_HEAD 2ed7b6f672963bab4bad713a71967f683fe01163 branch 'topic' of git://source/public/project 2ed7b6f672963bab4bad713a71967f683fe01163 not-for-merge tag 'fbdev_ref_1' of git://source/public/project

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

Bill
Previous: Shawn O. PearceNext: Linus Torvalds
Message 5 of 22 in “Why is git clone not checking out files?”
  1. Bill LearJan 30, 2007
  2. Jakub NarebskiJan 30, 2007
  3. Bill LearJan 30, 2007
  4. Shawn O. PearceJan 30, 2007
  5. Bill LearJan 30, 2007
  6. Linus TorvaldsJan 30, 2007
  7. Jakub NarebskiJan 30, 2007
  8. Linus TorvaldsJan 30, 2007
  9. Bill LearJan 30, 2007
  10. Johannes SchindelinJan 30, 2007
  11. Bill LearJan 30, 2007
  12. Bill LearJan 30, 2007
  13. Bill LearJan 30, 2007
  14. Bill LearJan 30, 2007
  15. Jakub NarebskiJan 30, 2007
  16. Jakub NarebskiJan 31, 2007
  17. Bill LearJan 30, 2007
  18. Shawn O. PearceJan 30, 2007
  19. Jakub NarebskiJan 30, 2007
  20. Bill LearJan 30, 2007
  21. Linus TorvaldsJan 30, 2007
  22. Linus TorvaldsJan 30, 2007

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.