Configure (or mimic) svn:externals to include code from Github in a svn-hosted project
We use Subversion locally, and we’re working on a project that uses a fork of Fluent NHibernate, which is hosted on Github.
- How do I checkin to local copy AND svn:externals subdirectories in one commit?
- How did git(-svn) set correct links to svn:externals?
- SVN externals not properly displayed in TortoiseSVN's Repository Browser and locally marked as non-versioned
- Replicating svn:externals into a git repository (Referencing git from Subversion)
- Find paths with svn:external properties with certain string?
- How to nest Git Submodules within Submodules?
Is there any way I can pull code from the Git repository as though it was an svn:external dependency? Can I just check the .git folder into our Subversion repository and just run git fetch when I need to, then svn commit the results?
2 Solutions collect form web for “Configure (or mimic) svn:externals to include code from Github in a svn-hosted project”
$ svn checkout https://github.com/USER/PROJECT/trunk
works. So use that URL for your
Specific commit: You need to find the appropriate revision number from the git repository using the SHA1 hash:
$ git svn find-rev <sha1>
Next, use the peg revision syntax for the revision number in your svn:externals definition.
Specific tag (from @orip’s comment):
Specific branch (from @orip’s comment):