UsingGitSvn
These instructions will set up your clone to pull from the macports repo directly with git-svn.
cd macports # this is your clone
git cat-file blob origin/misc:AUTHORS > AUTHORS
echo AUTHORS >> .git/info/exclude
git config svn.authorsfile AUTHORS
git update-ref refs/remotes/git-svn `git rev-parse HEAD`
git svn init http://svn.macports.org/repository/macports/trunk
git svn fetch
Now you should be able to update your repo with git svn rebase.
Note that this does not get you any of the branches, just the trunk. If you want the branches, either ask me to expose them, or fetch them directly with the following instructions (note that this replaces the previous instructions, it does not augment them):
cd macports
git cat-file blob origin/misc:AUTHORS > AUTHORS
echo AUTHORS >> .git/info/exclude
git config svn.authorsfile AUTHORS
git update-ref refs/remotes/trunk `git rev-parse HEAD`
git svn init -s http://svn.macports.org/repository/macports
git svn fetch
This will still take a while, but it’s faster than fetching the whole thing from svn.
Last edited by kballard, about 1 month ago
Versions:
