Thread (1 message) 1 message, 1 author, 2016-06-15

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

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:47:25

Matthieu Moy [off-list ref] 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 '...'
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help