Re: `git fetch --refmap=<refspec>… <repository> <refspec>… ` providing NON-empty <refspec> to the --refmap ALSO causes Git to ignore the configured refspecs
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- Sep 4, 2024, 16:38 UTC
- Message-ID
- <562614e4-5384-4220-896a-20b3f79771bd@kdbg.org>
- In-Reply-To
- <CANrWfmRdz1Xxud=f0GWrc=nURV2xZU8Wm=8u2X+W4tL4d-yeTg@mail.gmail.com>
Am 04.09.24 um 13:12 schrieb Han Jiang:
Show 5 quoted lines
> 1. If the doc says "providing an empty <refspec> to the --refmap > option causes Git to ignore the configured refspecs and rely entirely > on the refspecs supplied as command-line arguments" then it's > reasonable to guess that "providing a non-empty <refspec> will not do > those".
Fair enough. But then in section "Configured Remote-tracking Branches" it is said that "The latter use of the remote.<repository>.fetch values can be overridden by giving the --refmap=<refspec> parameter(s) on the command line." So... I dunno. Just my 2c.
-- Hannes