Skip to content

Commit 6e4ece6

Browse files
committed
Merge branch 'maint'
* maint: push: Correctly initialize nonfastforward in transport_push.
2 parents f5c3178 + bb8cccd commit 6e4ece6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

transport.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,8 +869,9 @@ int transport_set_option(struct transport *transport,
869869

870870
int transport_push(struct transport *transport,
871871
int refspec_nr, const char **refspec, int flags,
872-
int * nonfastforward)
872+
int *nonfastforward)
873873
{
874+
*nonfastforward = 0;
874875
verify_remote_names(refspec_nr, refspec);
875876

876877
if (transport->push)

0 commit comments

Comments
 (0)