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

Re: Alternates and push

From
Theodore Tso <tytso@mit.edu>
Date
Sep 6, 2008, 16:20 UTC
Message-ID
<20080906162030.GT9129@mit.edu>
In-Reply-To
<9e4733910809060542s5ede6d6m5bdb894c958ea8b7@mail.gmail.com>
On Sat, Sep 06, 2008 at 08:42:50AM -0400, Jon Smirl wrote:
Show 8 quoted lines
> At github my repo, digispeaker, has an alternate pointing to github's
> local copy of Linus' tree. I ignored my tree for a month and then
> pushed to it including 200MB of objects from Linus' tree. These 200MB
> of objects were pushed up to the server, but these objects were
> already in the alternates repository.
> 
> What's supposed to happen? Is something broken in github's setup, or
> does pushing not take into account alternates?

Long-standing mis-feature in git's logic in deciding what to push. It's been reported a few times, but apparently it's hard to fix, or at least it never hsa been fixed as far as I know.

I work around it by ssh'ing into master.kernel.org and doing a "git branch -f origin <commit-id-of-master-on-linus's-tree>". As long as there is one branch which is up-to-date, git will avoid pushing a huge number of objects to master.kernel.org. Of course, this workaround only works if you have shell access....

						- Ted
Previous: Jon SmirlNext: Junio C Hamano
Message 2 of 20 in “Alternates and push”
  1. Jon SmirlSep 6, 2008
  2. Theodore TsoSep 6, 2008
  3. Junio C HamanoSep 6, 2008
  4. Jon SmirlSep 6, 2008
  5. Shawn O. PearceSep 6, 2008
  6. Petr BaudisSep 9, 2008
  7. Shawn O. PearceSep 9, 2008
  8. Jan HudecSep 7, 2008
  9. Junio C HamanoSep 7, 2008
  10. Jan HudecSep 7, 2008
  11. Junio C HamanoSep 7, 2008
  12. Jan HudecSep 8, 2008
  13. Theodore TsoSep 7, 2008
  14. Junio C HamanoSep 8, 2008
  15. Theodore TsoSep 8, 2008
  16. Junio C HamanoSep 8, 2008
  17. Junio C HamanoSep 8, 2008
  18. Junio C HamanoSep 8, 2008
  19. Daniel BarkalowSep 8, 2008
  20. Shawn O. PearceSep 8, 2008

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.