diff options
Diffstat (limited to 'transport.c')
-rw-r--r-- | transport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/transport.c b/transport.c index e4f1decae2..a52c7e266f 100644 --- a/transport.c +++ b/transport.c @@ -427,7 +427,7 @@ static int fetch_refs_via_pack(struct transport *transport, args.self_contained_and_connected; data->options.connectivity_checked = args.connectivity_checked; - if (refs == NULL) + if (!refs) ret = -1; if (report_unmatched_refs(to_fetch, nr_heads)) ret = -1; |