Re: Location-agnostic submodules
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 1, 2012, 17:57 UTC
- Message-ID
- <7v4nrzaioc.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <732A8D2DB3374CD6BC12A5E7C4384313@PhilipOakley>
"Philip Oakley" <philipoakley@iee.org> writes:
Show 5 quoted lines
> Would an alternative be something like: > git submodule update <module> --from <remote> > > so that the user can state which of the current submodule's remotes > should be used for fetching the desired update.
Are you assuming that the <remote> in the above example will be different per invocation for a single user? I would imagine not---it would be more like "the upstream has this URL in .gitmodules, but this other mirror is closer to my network environment", i.e.
cd <module's directory> && git config remote.origin.url $there
no?