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

Re: What's cooking in git.git (Apr 2012, #02; Wed, 4)

From
Jeff King <peff@peff.net>
Date
Apr 5, 2012, 12:47 UTC
Message-ID
<20120405124706.GA3921@sigill.intra.peff.net>
In-Reply-To
<7v8vib6pu8.fsf@alter.siamese.dyndns.org>
On Wed, Apr 04, 2012 at 04:26:39PM -0700, Junio C Hamano wrote:
Show 7 quoted lines
> * jc/push-upstream-sanity (2012-04-03) 2 commits
>  - [fixup] remove misguided "try to see if URLs are the same"
>  - push: detect nonsense "upstream" check more carefully
> 
> "git push $there" without refspec, when the current branch is set to push
> to a remote different from $there, used to push to $there using the
> upstream information to a remote unreleated to $there.

The patch produced by squashing those together looks good to me. Though it might be worth getting input from people who use "upstream" (whether it becomes the default or not) by re-posting the final patch under a more obvious subject.

> This is necessary if we were to switch the push.default to 'current'.
I assume you meant "upstream" here.
-Peff
Previous: Junio C HamanoNext: Junio C Hamano
Message 2 of 11 in “What's cooking in git.git (Apr 2012, #02; Wed, 4)”
  1. Junio C HamanoApr 4, 2012
  2. Jeff KingApr 5, 2012
  3. push: error out when the "upstream" semantics does not make senseJunio C Hamano, Apr 5, 2012
  4. Jonathan NiederApr 5, 2012
  5. Junio C HamanoApr 5, 2012
  6. Jonathan NiederApr 5, 2012
  7. Junio C HamanoApr 5, 2012
  8. Jonathan NiederApr 5, 2012
  9. Matthieu MoyApr 5, 2012
  10. Junio C HamanoApr 5, 2012
  11. Matthieu MoyApr 6, 2012

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.