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

Re: [PATCH] push: Correctly initialize nonfastforward in do_push.

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 16, 2009, 17:13 UTC
Message-ID
<7vpr9q24oa.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1253119020-26547-1-git-send-email-Matthieu.Moy@imag.fr>
Matthieu Moy <Matthieu.Moy@imag.fr> writes:
> The variable is assigned unconditionally in print_push_status, but
> print_push_status is not reached by all codepaths. In particular, this
> fixes a bug where "git push ... nonexisting-branch" was complaining about
> non-fast forward.

Hmm, the patch looks correct but I am scratching my head to see how this is triggered. "git push ... nonexisting-branch" seems to get:

	error: src refspec nonexisting-branch does not match any.
        error: failed to push some refs to '...'
Previous: Matthieu Moy
Message 2 of 2 in “push: Correctly initialize nonfastforward in do_push.”
  1. push: Correctly initialize nonfastforward in do_push.Matthieu Moy, Sep 16, 2009
  2. Junio C HamanoSep 16, 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.