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

Re: [RFC PATCH] git push: Push nothing if no refspecs are given or configured

From
Finn Arne Gangstad <finnag@pvv.org>
Date
Mar 6, 2009, 13:58 UTC
Message-ID
<20090306135840.GA24454@pvv.org>
In-Reply-To
<alpine.DEB.1.00.0903061306450.10279@pacific.mpi-cbg.de>
On Fri, Mar 06, 2009 at 01:07:56PM +0100, Johannes Schindelin wrote:
Show 5 quoted lines
> [...]
> 
> Speaking of which, Steffen (who cannot reply right now, since he is AFK 
> for a while) had a patch to install "remote.<branch>.push = HEAD" with 
> clone and remote.  Would that be better?

Are you referring to the patch he suggested in October 2007? I'm reading the October/November archives now, and it seems these things have been discussed before... Ok so re-reading the discussion from October/November 2007, it seems that we are having exactly the same discussion again! I did not investigate far enough back in time before firing up this thread again evidently.

Reading the threads almost makes me sad. Steffen had a lot of great patches and ideas (implementing --current, adding tests, ...), but it was somehow dropped. After having read through this it would feel wrong somehow to even post patches on this topic, since I would effectively just redo what he already did.

The only difference between his approach and what I am suggesting seems to be that he mostly wanted "git push" to do various useful tasks depending on configuration (the remote.<branch>.push stuff), while I mostly want "git push" to do nothing by default. We both agree that the current "git push" default behavior is very bad for our workflow (many developers against one or more shared repos).

- Finn Arne
Previous: Johannes SchindelinNext: Jakub Narebski
Message 11 of 23 in “git push: Push nothing if no refspecs are given or configured”
  1. git push: Push nothing if no refspecs are given or configuredFinn Arne Gangstad, Mar 5, 2009
  2. Sverre RabbelierMar 5, 2009
  3. Markus HeidelbergMar 5, 2009
  4. Markus HeidelbergMar 5, 2009
  5. Sverre RabbelierMar 5, 2009
  6. Johannes SchindelinMar 6, 2009
  7. Junio C HamanoMar 6, 2009
  8. Sverre RabbelierMar 6, 2009
  9. Finn Arne GangstadMar 6, 2009
  10. Johannes SchindelinMar 6, 2009
  11. Finn Arne GangstadMar 6, 2009
  12. Jakub NarebskiMar 6, 2009
  13. Junio C HamanoMar 6, 2009
  14. Johannes SchindelinMar 7, 2009
  15. Johannes SchindelinMar 6, 2009
  16. John TapsellMar 6, 2009
  17. Jakub NarebskiMar 6, 2009
  18. Junio C HamanoMar 5, 2009
  19. Johannes SchindelinMar 6, 2009
  20. Markus HeidelbergMar 9, 2009
  21. Johannes SchindelinMar 9, 2009
  22. Markus HeidelbergMar 9, 2009
  23. Jeff KingMar 9, 2009

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.