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:27 UTC
Message-ID
<17855.39959.848058.957592@lisa.zopyra.com>
In-Reply-To
<20070130190907.GE26415@spearce.org>
On Tuesday, January 30, 2007 at 14:09:07 (-0500) Shawn O. Pearce writes:
Show 5 quoted lines
>...
>You did not ask for a tracking branch to be created.  So the
>result of your fetch is in FETCH_HEAD only.  Try instead:
>
>GIT_DIR=. git fetch git://source/public/project topic:refs/heads/master

Ok, then when I clone this my master branch in my cloned repo will actually be pointing to the topic branch of the remote repo?

[recreate dir, re-init, fetch as above, clone; now, cd into cloned repo]
% cd project
% git branch
* master
  origin

This makes me really nervous, like a nervousness-inducing cloaking device would. I'm not enough of a git master to just "use the force". When I go into my cloned repo, I want to see "topic" for my branch name, not master...

BTW, I note also that the clone seems to have taken GOBS more time this time around. Am I seeing things or would this be a result of the fetch gymnastics above?

Bill
Previous: Jakub NarebskiNext: Linus Torvalds
Message 20 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.