summaryrefslogtreecommitdiff
path: root/transport.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-09-20 19:13:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-09-20 19:13:47 (GMT)
commit6e4ece61ff9c4c0a0c7eac43fca74ca1b5548e98 (patch)
tree2f70584aff68fbf2fa20d55db26a913769ef1600 /transport.c
parentf5c3178151e3963cc8cf73fdc200831850b7a632 (diff)
parentbb8cccd01762d26c832b85d3b09798650e294c5f (diff)
downloadgit-6e4ece61ff9c4c0a0c7eac43fca74ca1b5548e98.zip
git-6e4ece61ff9c4c0a0c7eac43fca74ca1b5548e98.tar.gz
git-6e4ece61ff9c4c0a0c7eac43fca74ca1b5548e98.tar.bz2
Merge branch 'maint'
* maint: push: Correctly initialize nonfastforward in transport_push.
Diffstat (limited to 'transport.c')
-rw-r--r--transport.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/transport.c b/transport.c
index 4cb8077..644a30a 100644
--- a/transport.c
+++ b/transport.c
@@ -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)