Merge branch 'maint'
authorJunio C Hamano <gitster@pobox.com>
Sun, 20 Sep 2009 19:13:47 +0000 (12:13 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 20 Sep 2009 19:13:47 +0000 (12:13 -0700)
* maint:
  push: Correctly initialize nonfastforward in transport_push.

transport.c

index 4cb8077..644a30a 100644 (file)
@@ -869,8 +869,9 @@ int transport_set_option(struct transport *transport,
 
 int transport_push(struct transport *transport,
                   int refspec_nr, const char **refspec, int flags,
-                  int * nonfastforward)
+                  int *nonfastforward)
 {
+       *nonfastforward = 0;
        verify_remote_names(refspec_nr, refspec);
 
        if (transport->push)