• Junio C Hamano's avatar
    fetch: allow explicit --refmap to override configuration · c5558f80
    Junio C Hamano authored
    Since the introduction of opportunisitic updates of remote-tracking
    branches, started at around f2690487 (fetch: opportunistically
    update tracking refs, 2013-05-11) with a few updates in v1.8.4 era,
    the remote.*.fetch configuration always kicks in even when a refspec
    to specify what to fetch is given on the command line, and there is
    no way to disable or override it per-invocation.
    
    Teach the command to pay attention to the --refmap=<lhs>:<rhs>
    command-line options that can be used to override the use of
    configured remote.*.fetch as the refmap.
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    ---
    c5558f80
fetch-options.txt 5.29 KB