2

I want to check out a specific commit of code from github using svn:externals. It's easy to check out the trunk (discussed here), as shown in this svn:externals entry example:

https://github.com/jbeder/yaml-cpp.git yaml-cpp

To check out code from a Subversion repository you would create a svn:externals entry that looks something like (using the peg revision syntax in red book):

http://svn.example.com/code@<revision> code

This won't work, since it is not a Subversion repository I'm trying to check out. Using the accepted answer from a previous question also does not seem to work for a SVN check out from github:

https://github.com/jbeder/yaml-cpp.git@<sha1> yaml-cpp
Community
  • 1
  • 1
keplerian
  • 512
  • 1
  • 8
  • 19
  • 1
    Read [SVN Book](http://svnbook.red-bean.com/en/1.8/svn.advanced.externals.html) and use PEG|Operative revisions after understanding fully externals and format of definition? – Lazy Badger May 22 '15 at 04:16
  • @LazyBadger: Since it is not a SVN repo I'm dealing with, the svn:externals peg revision syntax will not work. – keplerian May 22 '15 at 07:04
  • 1
    Github have SVN-URLs for Git-repos, you **can** use PEG-revisions with it – Lazy Badger May 25 '15 at 09:44
  • possible duplicate of [TeamCity: Subversion VCS root with GitHub externals](http://stackoverflow.com/questions/14894367/teamcity-subversion-vcs-root-with-github-externals) – Paul Sweatte Jul 28 '15 at 17:53
  • Possible duplicate of [Edit svn:externals with git svn](https://stackoverflow.com/questions/42429730/edit-svnexternals-with-git-svn) – Paul Sweatte Jul 20 '17 at 16:06

0 Answers0