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

Re: Cloning from kernel.org, then switching to another repo

From
Jeff King <peff@peff.net>
Date
Nov 13, 2007, 04:14 UTC
Message-ID
<20071113041422.GA9745@sigill.intra.peff.net>
In-Reply-To
<9e4733910711120928r6d9d08f0l22f3c6f0b2d80313@mail.gmail.com>
On Mon, Nov 12, 2007 at 12:28:28PM -0500, Jon Smirl wrote:
Show 10 quoted lines
> Actually, fetching from kernel.org first and then switching the origin
> isn't helping. The host is http only since I can't get access to the
> git network port. When I pushed up my local repo it ends up in one big
> pack.
> 
> I do this:
> git clone kernel.org
> move the origin
> git pull
> -- it still pulls down the entire pack and takes an hour

Yep, the http fetch code doesn't understand about fetching parts of packs (there was some discussion about using partial HTTP transfers, but nobody seems to have cared enough to implement it).

> Will this fix it?
> at my remote host, first clone from kernel.org
> then push my local changes?

Yes, it should. The goal is to not put your changes and the upstream commits in the same pack. You could also push _just_ the upstream commits first, then in a different push, send your local changes. But when they get pushed together, they all end up in the same pack.

-Peff
Previous: Jon SmirlNext: Jeff King
Message 9 of 22 in “Cloning from kernel.org, then switching to another repo”
  1. Jon SmirlNov 12, 2007
  2. Johannes SchindelinNov 12, 2007
  3. Jon SmirlNov 12, 2007
  4. Johannes SchindelinNov 12, 2007
  5. Jon SmirlNov 12, 2007
  6. Johannes SchindelinNov 12, 2007
  7. Jon SmirlNov 12, 2007
  8. Jon SmirlNov 12, 2007
  9. Jeff KingNov 13, 2007
  10. Jeff KingNov 13, 2007
  11. Jon SmirlNov 13, 2007
  12. Jeff KingNov 13, 2007
  13. Matthieu MoyNov 13, 2007
  14. Junio C HamanoNov 13, 2007
  15. Jon SmirlNov 13, 2007
  16. Jakub NarebskiNov 13, 2007
  17. Linus TorvaldsNov 12, 2007
  18. Johannes SchindelinNov 12, 2007
  19. Jon SmirlNov 12, 2007
  20. Jeff KingNov 13, 2007
  21. Jon SmirlNov 13, 2007
  22. Jon SmirlNov 12, 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.