<p>I have a svn repository, R, that depends on a library, l, in another repository.</p>

<p>The goal is that when someone checks out R, they also check out l. We want l to still be in its own repository so that l can be updated without dependence on R.</p>

<p>I don't know much about external svn links, but I believe that when depending on a svn-based library one can link to it externally, 'ext'.</p>

<p>If l is in a git repository, can I do something similar? I'd like to preserve the goal stated above.</p>

[{'answer_id': 72925, 'author': 'jtimberman', 'author_id': 7672, 'author_profile': 'https://Stackoverflow.com/users/7672', 'pm_score': 2, 'selected': False, 'text': '<p>I suggest using a script wrapper for svn co. </p>\n\n<pre><code>#!/bin/sh\nsvn co path://server/R svn-R\ngit clone path://server/l git-l\n</code></pre>\n\n<p>Or similar.</p>\n'}, {'answer_id': 72930, 'author': 'Avi', 'author_id': 1605, 'author_profile': 'https://Stackoverflow.com/users/1605', 'pm_score': 2, 'selected': False, 'text': '<p><a href="http://svnbook.red-bean.com/en/1.5/svn.advanced.externals.html" rel="noreferrer">svn:externals</a> is the way svn can be made to check out sources from more than one repository into one working copy. But it is only meant for dealing with svn repositories - it doesn\'t know how to check out a git repository.</p>\n\n<p>You might be able to do it the other way \'round, by including an svn repository inside a git repository, using something like \'git svn\'.</p>\n'}]
['https://Stackoverflow.com/questions/72723', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']