Re: submodules : switching to an older commit/Tag in project with submodules
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 16, 2018, 18:18 UTC
- Message-ID
- <xmqqr2iydvk2.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <CACBZZX5QXiAMfP8=bBps26JqSOHYSaK722GcnRjfDX-OcKQ=cw@mail.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
Show 13 quoted lines
> On Thu, Aug 16, 2018 at 12:54 PM, Shani Fridman > <Shani.Fridman@visionmap.com> wrote: >> >> Hi everybody, >> >> I've got a question regarding submodules - >> >> I'm working on a git project with submodules connected to it, and pulling changes from them every month (more or less). >> Sometimes I need to checkout older versions of the project (tags or specific commits), that needs the older versions of the submodules as they were when I defined the tag. The problem is, that the checkout only changes the superProject directories, and not the submodules... I have to checkout the relevant submodules commit manually. >> >> Have you came across the same problem? Any idea what can I do? > > You run "git submodule update".
The problem is, some people consider that I have to do things "manually" X-<.