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, 19:03 UTC
Message-ID
<17855.38543.761930.929267@lisa.zopyra.com>
In-Reply-To
<Pine.LNX.4.64.0701301040200.3611@woody.linux-foundation.org>
On Tuesday, January 30, 2007 at 10:41:03 (-0800) Linus Torvalds writes:
Show 10 quoted lines
>On Tue, 30 Jan 2007, Bill Lear wrote:
>...
>> This repository was created like this:
>> 
>> % mkdir /repos/git/project
>> % cd /repos/git/project
>> % git --bare init-db --shared
>>[% GIT_DIR=. git fetch git://source/public/project topic:topic]
>
>...but you don't _have_ any such branch. You only have a "topic" branch.
Hmm, so I did this:
% cd /repos/git/project
% GIT_DIR=. git branch
  topic
And then, tried it all again:
% cd ..
% rm -rf project
% mkdir project
% cd project
% git --bare clone --shared
% GIT_DIR=. git fetch git://source/public/project
warning: no common commits
remote: Generating pack...
remote: Done counting 1148 objects.
remote: Deltifying 1148 objects.
remote:  100% (1148/1148) done
Unpacking 1148 objects
remote: Total 1148, written 1148 (delta 632), reused 1020 (delta 534)
 100% (1148/1148) done
% GIT_DIR=. git branch
[eh?  No branches??]
% cat HEAD
ref: refs/heads/master

So, where are my branches? And don't tell me I don't need no steenking branches...

Bill
Previous: Jakub NarebskiNext: Shawn O. Pearce
Message 17 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.