transport-helper: ask the helper to set the same options for import as for fetch
commitaab1beb0e1a66d31b0a9896e8c13009dece0aa45
authorMike Hommey <mh@glandium.org>
Fri, 13 Feb 2015 05:24:46 +0000 (13 14:24 +0900)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Feb 2015 19:32:28 +0000 (13 11:32 -0800)
treea5ce27f54dab96203fa5039fe1e05aa308a8eb42
parent2879bc3b0c3acc89f0415ac0d0e3946599d9fc88
transport-helper: ask the helper to set the same options for import as for fetch

A remote helper is currently only told about the 'check-connectivity',
'cloning', and 'update-shallow' options when it supports the 'fetch'
command, but not when it supports 'import' instead.

This is especially important for the 'cloning' option, because it
means a remote helper that only supports 'import' can't distinguish
between a clone and a pull besides doing some assumptions from the
git directory state.

Signed-off-by: Mike Hommey <mh@glandium.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport-helper.c