{"thread":{"id":"21009","subject":"[(resend) PATCH] push: Correctly initialize nonfastforward in transport_push.","startedAt":"2009-09-20T17:33:20Z","lastAt":"2009-09-20T17:33:20Z","messageCount":1,"participants":["Matthieu Moy"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"123544","messageId":"1253468000-11367-1-git-send-email-Matthieu.Moy@imag.fr","threadId":"21009","inReplyTo":null,"subject":"[(resend) PATCH] push: Correctly initialize nonfastforward in transport_push.","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@imag.fr","sentAt":"2009-09-20T17:33:20Z","receivedAt":"2009-09-20T17:33:20Z","isPatch":true,"sender":{"key":"git@matthieu-moy.fr","avatar":"https://avatars.githubusercontent.com/u/14709?v=4"},"body":"The variable is assigned unconditionally in print_push_status, but\nprint_push_status is not reached by all codepaths. In particular, this\nfixes a bug where \"git push ... nonexisting-branch\" was complaining about\nnon-fast forward.\n\nSigned-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>\n---\nJust making sure the patch hasn't been forgotten ... (and changed the\nsubject from do_push to transport_push)\n\nRegards,\n\n transport.c |    1 +\n 1 files changed, 1 insertions(+), 0 deletions(-)\n\ndiff --git a/transport.c b/transport.c\nindex 4cb8077..18db3d3 100644\n--- a/transport.c\n+++ b/transport.c\n@@ -871,6 +871,7 @@ int transport_push(struct transport *transport,\n \t\t   int refspec_nr, const char **refspec, int flags,\n \t\t   int * nonfastforward)\n {\n+\t*nonfastforward = 0;\n \tverify_remote_names(refspec_nr, refspec);\n \n \tif (transport->push)\n-- \n1.6.5.rc1.11.g2d184.dirty\n"}]}