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

Re: svn:externals using git submodules

From
MJMichel Jouvin <jouvin@lal.in2p3.fr>
Date
Jan 20, 2010, 13:58 UTC
Message-ID
<loom.20100120T145348-193@post.gmane.org>
In-Reply-To
<200705011121.17172.andyparkins@gmail.com>
Andy Parkins <andyparkins <at> gmail.com> writes:
Show 21 quoted lines
> 
> Hello,
> 
> I've done this by hand as a proof of concept I suspect it would need loads of 
> work in git-svn to do it properly.  However, I thought I'd mention as part of 
> my "success with submodules" reports.
> 
> ... 
> Now we want that clone to be even more strongly linked to the parent - to the 
> extent that they share the same refs, etc:
> 
>  $ cd libswscale
>  $ rm -rf .git/refs .git/logs .git/info description config
>  $ ln -s ../../.git/refs .git/refs
>  $ ln -s ../../.git/logs .git/logs
>  $ ln -s ../../.git/info .git/info
>  $ ln -s ../../.git/config .git/config
>  $ ln -s ../../.git/description .git/description
> 
> ...
> Andy

I don't know if it's a good idea to follow-up on such an old entry... but I used your trick, Andy, and it works pretty well. With one exception: I am using Git on Windows and there is no symlinks on this OS. That means that you need to basically "recreate" the symlinks everytime you want to update the submodules. Not very handy but acceptable as they are not updated very often.

I have to check the list if there has been some new ways to achieve this. But I'm clearly in the case of svn:externals not tighten to a particular revision, which seems the difficult case for Git.

Cheers,
Michel
Previous: Shawn O. Pearce
Message 14 of 14 in “svn:externals using git submodules”
  1. Andy ParkinsMay 1, 2007
  2. Chris ShoemakerMay 1, 2007
  3. Shawn O. PearceMay 1, 2007
  4. Chris ShoemakerMay 1, 2007
  5. Shawn O. PearceMay 1, 2007
  6. Andy ParkinsMay 1, 2007
  7. Andy ParkinsMay 1, 2007
  8. Chris ShoemakerMay 1, 2007
  9. Andy ParkinsMay 1, 2007
  10. Chris ShoemakerMay 1, 2007
  11. Linus TorvaldsMay 1, 2007
  12. Junio C HamanoMay 1, 2007
  13. Shawn O. PearceMay 1, 2007
  14. Michel JouvinJan 20, 2010

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.