author | Matthieu Moy <Matthieu.Moy@imag.fr> | |
Sun, 20 Sep 2009 17:33:20 +0000 (19:33 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 20 Sep 2009 19:11:29 +0000 (12:11 -0700) | ||
commit | bb8cccd01762d26c832b85d3b09798650e294c5f | |
tree | 364585792b070a305d72eb6dcb4d5ddc9fb68c55 | tree | snapshot |
parent | cb572206d9dac4ba52878e7e1a4a7028d85707ab | commit | diff |
push: Correctly initialize nonfastforward in transport_push.
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.
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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.
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport.c | diff | blob | history |