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

Re: What's cooking in git.git (Mar 2009, #06; Sat, 21)

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 24, 2009, 09:02 UTC
Message-ID
<7vljqv2t05.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<7v4oxk6wk2.fsf@gitster.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 6 quoted lines
> Finn Arne Gangstad <finnag@pvv.org> writes:
>
>> If you feel that talking about a possible future change is premature,
>> you could omit that part of the second commit I guess, but I think
>> printing some kind of warning is valuable.  Are you waiting for more
>> input?  It seems that this topic is pretty dead now.

Now it turns out that it has been "pretty dead" because nobody, not even the original author, was doing any testing and fixing.

After merging this "warning" thing to next, I mistype the name of the remote I wanted to push with the default "matching" semantics and got this:

  $ git push --dry-run sf.net
  warning: You did not specify any refspecs to push, and the current remote
  warning: has not configured any push refspecs. The default action in this
  warning: case is to push all matching refspecs, that is, all branches
  warning: that exist both locally and remotely will be updated.  This may
  warning: not necessarily be what you want to happen.
  warning:
  warning: You can specify what action you want to take in this case, and
  warning: avoid seeing this message again, by configuring 'push.default' to:
  warning:   'nothing'  : Do not push anythig
  warning:   'matching' : Push all matching branches (default)
  warning:   'tracking' : Push the current branch to whatever it is tracking
  warning:   'current'  : Push the current branch
  fatal: 'sf.net' does not appear to be a git repository
  fatal: The remote end hung up unexpectedly

The final, most important error messages are dwarfed out by the warning that talks about setting configuration on the remote that does not even exist.

In this particular case, it does not corrupt the local nor remote repositories, and because it was me who tried this who knew what he was doing, so it is Ok, and that is the point of keeping any new features out of 'master' until such silly misfeatures are found and fixed. But it would have been nicer if I weren't the only one testing and finding bugs.

Previous: Junio C HamanoNext: Junio C Hamano
Message 10 of 13 in “What's cooking in git.git (Mar 2009, #06; Sat, 21)”
  1. Junio C HamanoMar 21, 2009
  2. Wincent ColaiutaMar 21, 2009
  3. David AguilarMar 21, 2009
  4. Wincent ColaiutaMar 22, 2009
  5. Junio C HamanoMar 21, 2009
  6. Wincent ColaiutaMar 22, 2009
  7. Johannes SixtMar 21, 2009
  8. Finn Arne GangstadMar 23, 2009
  9. Junio C HamanoMar 23, 2009
  10. Junio C HamanoMar 24, 2009
  11. Junio C HamanoMar 24, 2009
  12. Finn Arne GangstadMar 24, 2009
  13. Junio C HamanoMar 25, 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.