I started working with gSOAP and found a git version of the source code in Github. But it turned out this repo hasn't been updated for 10 years. Since it's the top entry for "gsoap source code" in Google I wanted to update it, but I have no idea how it was originally created. Is it possible to update it using git svn?
Asked
Active
Viewed 21 times
1 Answers
0
I got some ideas from https://stackoverflow.com/a/38706530/264822 but had to play around with it a few times to get this to work.
- Fork the repo in Github.
git clonemy copy of the repo from Github.git checkout -b githubto make a copy of master.git branch -d masterto delete master.- Edit .git/config to add the official Subversion URL:
[svn-remote "master"]
url = https://svn.code.sf.net/p/gsoap2/code/
fetch = :refs/heads/master
git svn fetch masterto migrate the Subversion history into master.git checkout mastergit rebase githubto rebase the original Github history onto the Subversion history.git branch -d githubclean up.git push --set-upstream origin masterforce push the new history.- Create a PR from my updated repo back to the original Github repo.
There may be a simpler way of doing this (e.g. pulling the Subversion history into a branch) but this method works.
parsley72
- 8,449
- 8
- 65
- 98