git/list[1] front-page[2] threads[3] people[4] search[5] about
 

submodules : switching to an older commit/Tag in project with submodules

From
SFShani Fridman <shani.fridman@visionmap.com>
Date
Aug 16, 2018, 10:54 UTC
Message-ID
<bc9762aaf57e441e95f9eed4e64799b7@EX13.visionmap.co.il>
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?
Thank you in advance,
Shani
This message (including any attachments) issued by RAFAEL- ADVANCED DEFENSE SYSTEMS LTD. (hereinafter "RAFAEL") contains confidential information intended for a specific individual and purpose, may constitute information that is privileged or confidential or otherwise protected from disclosure. If you are not the intended recipient, you should contact us immediately and thereafter delete this message from your system. You are hereby notified that any disclosure, copying, dissemination, distribution or forwarding of this message, or the taking of any action based on it, is strictly prohibited. If you have received this e-mail in error, please notify us immediately by e-mail mailto:lawraf@rafael.co.il and completely delete or destroy any and all electronic or other copies of the original message and any attachments thereof.
________________________________________
This message (including any attachments) issued by RAFAEL- ADVANCED DEFENSE SYSTEMS LTD. (hereinafter "RAFAEL") contains confidential information intended for a specific individual and purpose, may constitute information that is privileged or confidential or otherwise protected from disclosure. If you are not the intended recipient, you should contact us immediately and thereafter delete this message from your system. You are hereby notified that any disclosure, copying, dissemination, distribution or forwarding of this message, or the taking of any action based on it, is strictly prohibited. If you have received this e-mail in error, please notify us immediately by e-mail mailto:lawraf@rafael.co.il and completely delete or destroy any and all electronic or other copies of the original message and any attachments thereof.
Next: Stefan Beller
Message 1 of 5 in “submodules : switching to an older commit/Tag in project with submodules”
  1. Shani FridmanAug 16, 2018
  2. Stefan BellerAug 16, 2018
  3. Ævar Arnfjörð BjarmasonAug 16, 2018
  4. Junio C HamanoAug 16, 2018
  5. Ævar Arnfjörð BjarmasonAug 16, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.