Hi All,
I'm a bit unhappy about the move to git because I was able to get the coreboot tree hooked up into our SVN as an external so we would always have the latest by simply doing an SVN update. I'm afraid I won't be able to convince the rest of AMD to move to git just to make my life easier.
Does anybody know of a way or have a script to get SVN to run git for me? All I need is the equivalent of SVN checkout and update. Thanks,
FrankV
Hi Frank,
On Tue, Jun 7, 2011 at 1:17 AM, Vibrans, Frank Frank.Vibrans@amd.com wrote:
Hi All,
I’m a bit unhappy about the move to git because I was able to get the coreboot tree hooked up into our SVN as an external so we would always have the latest by simply doing an SVN update. I’m afraid I won’t be able to convince the rest of AMD to move to git just to make my life easier.
Does anybody know of a way or have a script to get SVN to run git for me? All I need is the equivalent of SVN checkout and update. Thanks,
This may help you. http://git.or.cz/course/svn.html http://people.gnome.org/~newren/eg/git-for-svn-users.html
- Thanks, Vikram
Am Montag, den 06.06.2011, 14:47 -0500 schrieb Vibrans, Frank:
Does anybody know of a way or have a script to get SVN to run git for me? All I need is the equivalent of SVN checkout and update. Thanks,
git-svn provides a bidirectional gateway, and we used it to provide the read-only git repository so far (ie. the other direction).
You could create a local SVN repository and convert the git repository into it (cronjob or similar).
Patrick
On Mon, Jun 6, 2011 at 21:47, Vibrans, Frank Frank.Vibrans@amd.com wrote:
Hi All,
I’m a bit unhappy about the move to git because I was able to get the coreboot tree hooked up into our SVN as an external so we would always have the latest by simply doing an SVN update. I’m afraid I won’t be able to convince the rest of AMD to move to git just to make my life easier.
Does anybody know of a way or have a script to get SVN to run git for me? All I need is the equivalent of SVN checkout and update. Thanks,
FrankV
Usually it's used the other way around (i.e. use git to commit to a upstream svn repo), but nevertheless, git has strong svn support, as documented here: http://www.kernel.org/pub/software/scm/git/docs/git-svn.html
The equivalent of 'svn co' would be 'git svn clone', the equivalent to 'svn up' would be 'git svn rebase'. As you can see, updating is slightly less trivial because git works very differently, but generally it should work fine.
Anyway, convincing the rest of AMD would probably be more fun :P I understand that a lot of people hesitate to switch to git because it seems so complex and powerful - but the regular workflow is very simple and very very easy to learn.
Vibrans, Frank wrote:
Does anybody know of a way or have a script to get SVN to run git for me?
http://stackoverflow.com/questions/3662114/rw-access-git-repository-using-sv...
This looks like the right thing:
http://git.q42.co.uk/git_svn_server.git
//Peter