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

Re: cannot fetch arm git tree

From
JHJello huang <ruifeihuang@gmail.com>
Date
Jan 17, 2011, 01:49 UTC
Message-ID
<AANLkTi=VPj2JVnkjv-ja48OUwJZR3zhDYcvSeps1X8x1@mail.gmail.com>
In-Reply-To
<20110116134248.GD27542@n2100.arm.linux.org.uk>
Russell,thanks for your reply so elaborate and i have gotten the idea now.

On 16 January 2011 21:42, Russell King - ARM Linux <linux@arm.linux.org.uk>wrote:

Show 45 quoted lines
> On Sun, Jan 16, 2011 at 09:10:17PM +0800, Jello huang wrote:
> > yes,git doesn't  handle that case and i rename the pack name,but there is
> > also the similar error.Now i just delet the git tree and  clone it again
> > tonight .
>
> _Always_ without fail fetch Linus' tree before pulling my tree.
>
> My tree is a rsync clone of the objects and pack files in Linus' tree,
> plus whatever git decided to build on top of that - for local commits
> that's individual object files.  For remote pulls, that's probably a few
> small pack files.
>
> There is *no* repacking of my tree.  So the only times it gets 'repacked'
> is when Linus repacks his tree.
>
> Let's say you already have a copy of my tree from a month ago, and Linus
> has pulled some work from me into his tree, and repacked his tree into one
> single pack file.  At the moment, the largest pack file from Linus is
> 400MB plus a 50MB index.
>
> You already have most of the contents of that 400MB pack file, but if
> you're missing even _one_ object which is contained within it, git will
> have to download the _entire_ 400MB pack file and index file to retrieve
> it.
>
> However, if you first fetch Linus' tree via the git protocol, it can just
> request the objects it doesn't have from the git server.  That will mean
> you'll have all the objects in the large pack files before you start trying
> to pull my tree, and git won't have to download 400MB for the sake of
> retrieving just maybe 10k that you didn't have.
>
> This isn't something special with my tree - it's a side effect of the
> http protocol git uses.  So, before you fetch _any_ http-based git tree,
> first make sure you're up to date with Linus'.
>
> (I update my tree from Linus' in rsync mode to make http-based stuff a
> lot more friendly to people using it - some of whom are stuck behind
> firewalls which can only do http.  Fetching a constantly repacked git
> tree via http results in hundreds of megabytes needing to be fetched
> every time.)
>
> So please, whenever possible, always fetch Linus' latest tree _first_
> and then mine.  Same goes for any other http based tree which doesn't
> auto-repack.
>
-- 
JUST DO IT,NOTHING IS IMPOSSIBLE


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Previous: Russell King - ARM LinuxNext: Detlef Vollmann
Message 3 of 15 in “Re: cannot fetch arm git tree”
  1. Uwe Kleine-KönigJan 16, 2011
  2. Russell King - ARM LinuxJan 16, 2011
  3. Jello huangJan 17, 2011
  4. Detlef VollmannJan 21, 2011
  5. Uwe Kleine-KönigJan 21, 2011
  6. Russell King - ARM LinuxJan 21, 2011
  7. Detlef VollmannJan 21, 2011
  8. Jello huangJan 21, 2011
  9. Russell King - ARM LinuxJan 21, 2011
  10. Detlef VollmannJan 21, 2011
  11. Uwe Kleine-KönigJan 21, 2011
  12. Miles BaderJan 24, 2011
  13. Johannes SixtJan 24, 2011
  14. J.H.Jan 24, 2011
  15. Russell King - ARM LinuxJan 24, 2011

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.