Re: submodule.$name.url is ignored during submodule update
- From
Doug Kelly <dougk.ff7@gmail.com>
- Date
- Mar 19, 2015, 13:09 UTC
- Message-ID
- <CAEtYS8TM6KWEjpcOLL8qRmN1yEo4JGQLLJCkkQ+GHaX7F-aLJA@mail.gmail.com>
- In-Reply-To
- <CAC+L6n1RjvzcqX33VDvcM-4CpQPHeaddA7Dhs9S+ma+T+DN28Q@mail.gmail.com>
On Thu, Mar 19, 2015 at 4:27 AM, Dmitry Neverov <dmitry.neverov@gmail.com> wrote:
Show 7 quoted lines
> Hi, > > I've noticed that the 'submodule.$name.url' config parameter from the > main repository is ignored when a submodule needs to be updated, the > submodule's 'remote.origin.url' is used instead. Is there any way to > customize the submodule url for both the initial clone and for > updates?
That's what "git submodule sync" is for. It will synchronize the url in .gitmodules with to the remote.origin.url for each submodule. I'm not sure about the second part of your question: are you talking about using different URLs for the initial clone and updates?