<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>fnokd! &#187; jruby</title>
	<atom:link href="http://www.fnokd.com/tag/jruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fnokd.com</link>
	<description>Bob Blogs</description>
	<lastBuildDate>Mon, 18 May 2009 17:42:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>New JBoss-Rails Release &amp; Reminder</title>
		<link>http://www.fnokd.com/2008/12/03/new-jboss-rails-release-reminder/</link>
		<comments>http://www.fnokd.com/2008/12/03/new-jboss-rails-release-reminder/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 18:39:58 +0000</pubDate>
		<dc:creator>Bob McWhirter</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JBoss]]></category>
		<category><![CDATA[jruby]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://www.fnokd.com/?p=591</guid>
		<description><![CDATA[Just a reminder, in case anyone didn&#8217;t make the jump..
My Ruby/Rails/JBoss blogging is going on over at Odd Thesis these days.
That includes this announcement about the 1.0.0-Beta-2 release that just popped.
]]></description>
			<content:encoded><![CDATA[<p>Just a reminder, in case anyone didn&#8217;t make the jump..</p>
<p>My Ruby/Rails/JBoss blogging is going on over at <a title="Odd Thesis" href="http://oddthesis.org/">Odd Thesis</a> these days.</p>
<p>That includes <a title="JBoss-Rails 1.0.0-Beta-2 release announcement" href="http://oddthesis.org/posts/2008-12-jboss-rails-1-0-beta-2-released">this announcement</a> about the 1.0.0-Beta-2 release that just popped.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnokd.com/2008/12/03/new-jboss-rails-release-reminder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reminder: RaleighRubyCamp</title>
		<link>http://www.fnokd.com/2008/09/30/reminder-raleighrubycamp/</link>
		<comments>http://www.fnokd.com/2008/09/30/reminder-raleighrubycamp/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 13:23:17 +0000</pubDate>
		<dc:creator>Bob McWhirter</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[barcamp]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[jruby]]></category>
		<category><![CDATA[raleigh]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.fnokd.com/?p=534</guid>
		<description><![CDATA[Don&#8217;t forget, in a few weeks at the Red Hat offices in Raleigh, there will be an unconference-style Ruby BarCamp on October 18th.

My plan is to put together a few clumps of slides, prepare a cluster on EC2, and see if anyone wants to hear about JBoss Rails.  I&#8217;ll of course put them online sometimes [...]]]></description>
			<content:encoded><![CDATA[<p>Don&#8217;t forget, in a few weeks at the <a title="Red Hat in Raleigh" href="http://www.redhat.com/about/contact/ww/americas/raleigh.html">Red Hat offices in Raleigh</a>, there will be an unconference-style <a title="RaleighRubyCamp" href="http://barcamp.pbwiki.com/RaleighRubyCamp">Ruby BarCamp</a> on October 18th.</p>
<p style="text-align: center;"><a href="http://barcamp.pbwiki.com/RaleighRubyCamp"><img class="aligncenter size-medium wp-image-535" title="raleigh-rubycamp" src="http://www.fnokd.com/wp-content/uploads/2008/09/raleigh-rubycamp-300x106.png" alt="" width="300" height="106" /></a></p>
<p>My plan is to put together a few clumps of slides, prepare a cluster on EC2, and see if anyone wants to hear about JBoss Rails.  I&#8217;ll of course put them online sometimes before/during/after the camp, since that&#8217;s <a title="BarCamp rules" href="http://barcamp.pbwiki.com/TheRulesOfBarCamp">part of the rules</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnokd.com/2008/09/30/reminder-raleighrubycamp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JBoR: Will it cluster?</title>
		<link>http://www.fnokd.com/2008/09/29/jbor-will-it-cluster/</link>
		<comments>http://www.fnokd.com/2008/09/29/jbor-will-it-cluster/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 15:08:01 +0000</pubDate>
		<dc:creator>Bob McWhirter</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[clustering]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JBoss]]></category>
		<category><![CDATA[jbosscache]]></category>
		<category><![CDATA[jruby]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://www.fnokd.com/?p=515</guid>
		<description><![CDATA[JBoss on Rails will indeed cluster!
After modifying and dropping my jboss-rails.deployer into an &#8216;all&#8217; configured server of JBoss AS 5, and firing up 3 instances on my localhost (non-trivial on OSX&#8230;):

10:43:28,409 INFO  [RPCManagerImpl] Received new cluster view: [127.0.0.10:63740&#124;2] [127.0.0.10:63740, 127.0.0.11:63747, 127.0.0.12:63749]
10:43:28,435 INFO  [RPCManagerImpl] Cache local address is 127.0.0.12:63749
10:43:28,469 INFO  [ComponentRegistry] JBoss Cache [...]]]></description>
			<content:encoded><![CDATA[<p>JBoss on Rails will indeed cluster!</p>
<p>After modifying and dropping my <a href="http://github.com/bobmcwhirter/jboss-rails/tree/master">jboss-rails.deployer</a> into an &#8216;all&#8217; configured server of JBoss AS 5, and firing up 3 instances on my localhost (non-trivial on OSX&#8230;):</p>
<pre style="overflow: auto; font-size: 90%"><code>
10:43:28,409 INFO  [RPCManagerImpl] Received new cluster view: [127.0.0.10:63740|2] [127.0.0.10:63740, 127.0.0.11:63747, 127.0.0.12:63749]
10:43:28,435 INFO  [RPCManagerImpl] Cache local address is 127.0.0.12:63749
10:43:28,469 INFO  [ComponentRegistry] JBoss Cache version: JBossCache 'Poblano' 2.2.0.GA
</code></pre>
<p>And I&#8217;ve got 3 nodes running the same Rails app, all sharing a cookie and a <a href="http://www.jboss.org/jbosscache/">JBossCache</a> cache.  Nick Sieger&#8217;s <a href="http://github.com/nicksieger/jruby-rack/tree/master">JRuby-Rack</a> handles binding the Rails session to the actual servlet session, and JBossCache takes care of the rest.</p>
<p>A little 8-line perl round-robinning load-balancer is wired up through mod_rewrite in my Apache httpd.conf to throw requests to each of the nodes.  Anything set in the session is immediately available at the next request which lands at a different node.</p>
<p>Further down the line, we can look at a clustered cache for caching AR models and view fragments.  Not too shabby.</p>
<p>It should be fairly easy to create a nice Amazon EC2 AMI with Fedora+AS5+jboss-rails, plus some better Rake/capistrano tasks, and make for quick cluster deployment.   Any EC2 experts wanting to jump in?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnokd.com/2008/09/29/jbor-will-it-cluster/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>And now, something slightly different</title>
		<link>http://www.fnokd.com/2008/08/28/and-now-something-slightly-different/</link>
		<comments>http://www.fnokd.com/2008/08/28/and-now-something-slightly-different/#comments</comments>
		<pubDate>Thu, 28 Aug 2008 21:19:08 +0000</pubDate>
		<dc:creator>Bob McWhirter</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JBoss]]></category>
		<category><![CDATA[JBoss.ORG]]></category>
		<category><![CDATA[job]]></category>
		<category><![CDATA[jruby]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.fnokd.com/?p=433</guid>
		<description><![CDATA[Back in May, I was a manager.
I feebly attempted to direct 8 great guys and gals to further the goals of JBoss.org.  After the Codehaus, you&#8217;d think I&#8217;d be able to help build an opensource community with fun and flair.  But I came to realize that it&#8217;s hard to build a community as an active [...]]]></description>
			<content:encoded><![CDATA[<p>Back in May, I was a manager.</p>
<p>I feebly attempted to direct 8 great guys and gals to further the goals of JBoss.org.  After the Codehaus, you&#8217;d think I&#8217;d be able to help build an opensource community with fun and flair.  But I came to realize that it&#8217;s hard to build a community as an active effort.  Instead, I think community develops as a by-product of a useful and well-run project.  And that&#8217;s under the control of the project leaders and contributors, not necessarily some external third party.</p>
<p>Back in May, I gave up being a manger.</p>
<p>Now, the day after Labor Day, fittingly enough, I&#8217;ll be jumping back into the world of JBoss.  But <strong>not as a manager</strong>. When I was burned out and felt like resigning, <a title="Proctor's Drools blog" href="http://blog.athico.com/">Mark Proctor</a> and <a title="Sacha's Blog" href="http://sacha.labourey.com/">Sacha Labourey</a> instead talked me into taking a sabbatical.  And I&#8217;m truly grateful to them.  Now, after unwinding for a few months, I asked to rejoin the team as an engineer.  Through Sacha&#8217;s patience and budget manipulation, I&#8217;m once again excited to go to work.  I think JBoss should definitely be held up as a company that takes care of its people.  They could&#8217;ve easily given me the boot, but instead they&#8217;ve been extremely kind and accommodating.</p>
<p>So, what will I be doing?</p>
<p>After talking to Java developers and Rubyists alike, my first goals are to look at Rails as just-another-way to write J2EE apps (or &#8220;JEE&#8221; I reckon, these days&#8230;).  Yes, I know about (and plan to use) things like <a title="Warbler" href="http://blog.nicksieger.com/articles/2007/09/04/warbler-a-little-birdie-to-introduce-your-rails-app-to-java">Warbler</a> and <a title="JRuby-Rack" href="http://blog.nicksieger.com/articles/2008/05/08/introducing-jruby-rack">JRuby-Rack</a>.  Both are good things.</p>
<p>But I also have full control of the deployment environment, to build a stack to make it happier than &#8220;build and deploy a WAR&#8221;.</p>
<p>Through the miracle of <a title="JBossAS" href="http://www.jboss.org/jbossas/">AS5</a> built on <a title="JBossMC" href="http://www.jboss.org/jbossmc/">JBossMicrocontainer</a>, along with the awesome <a title="JBossVFS" href="http://repository.jboss.org/maven2/org/jboss/jboss-vfs/">VFS</a> bits, it should be possible to deploy a Rails app in-situ, right from your working directory.  There should be no reason to have to build a WAR while you&#8217;re hacking a rails app.  And deployment to a server should still involve capistrano (in my opinion).  Stick to the Rails way of doing things, but make it Java under the covers.</p>
<p>Various blog posts have shown Rails apps on Glassfish in 12, 10, or 5 steps.  My goal is to get it down to 1 step. And you should magically be able to pick up and use all the wonderful JEE bits that maps to the Rails functionality the Railers of the world enjoy, without having to be aware of the JEE bits.</p>
<p>Speaking with Mark Newton (the guy who runs JBoss.org now), it seems sensible to view Rails as simply yet-another-programming-model for writing Java apps.  The idea is to avoid leaky abstractions, so we&#8217;re not having to write some psuedo RubyJava application.</p>
<p>Once we&#8217;ve got that base covered, then we can make fun and exciting Ruby bindings to all the powerful JBoss tools, such as Drools, ESB, Cache or MQ.</p>
<p>I expect to have a bit of fun with this.  More fun than being a manager, certainly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnokd.com/2008/08/28/and-now-something-slightly-different/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>GitHub Mirrors for some JBoss Projects</title>
		<link>http://www.fnokd.com/2008/08/21/github-mirrors-for-some-jboss-projects/</link>
		<comments>http://www.fnokd.com/2008/08/21/github-mirrors-for-some-jboss-projects/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 16:12:09 +0000</pubDate>
		<dc:creator>Bob McWhirter</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JBoss]]></category>
		<category><![CDATA[jruby]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.fnokd.com/?p=421</guid>
		<description><![CDATA[In addition to the previously-mentioned JRuby mirror from Codehaus SVN to GitHub, I&#8217;m now also mirroring:

JBoss Microcontainer
JBoss AS5
JRuby

All are trunk-only mirrors, not picking up branches or tags.  Since the JBoss repository path has about 77,000 subversion revisions, and at one point held any and all JBoss software ever written, I have not mirrored it [...]]]></description>
			<content:encoded><![CDATA[<p>In addition to the previously-mentioned JRuby mirror from Codehaus SVN to GitHub, I&#8217;m now also mirroring:</p>
<ul>
<li><a title="JBoss Microcontainer on GitHub" href="http://github.com/bobmcwhirter/microcontainer/tree/vendor">JBoss Microcontainer</a></li>
<li><a title="JBoss AS5 on GitHub" href="http://github.com/bobmcwhirter/jbossas/tree/vendor">JBoss AS5</a></li>
<li><a title="JRuby on GitHub" href="http://github.com/bobmcwhirter/jruby/tree/vendor">JRuby</a></li>
</ul>
<p>All are trunk-only mirrors, not picking up branches or tags.  Since the JBoss repository path has about 77,000 subversion revisions, and at one point held any and all JBoss software ever written, I have not mirrored it in its entirety.  Instead, I&#8217;ve only grabbed http://anonsvn.jboss.org/repos/jbossas/trunk back to revision 77,200.  It&#8217;ll mirror going forward, but the github repository does not include any ancient history.</p>
<p>For those of you playing along at home, the way to fetch just a cauterized &#8220;tip&#8221; from SVN to a git repository is to mirror <a title="Mirroring SVN to GitHub" href="http://www.fnokd.com/2008/08/20/mirroring-svn-repository-to-github/">as before</a>, but for the initial &#8220;git svn fetch&#8221; command, add a SVN-style revision range</p>
<blockquote><p>git svn fetch -r77200:HEAD</p></blockquote>
<p>For me, at least, trying to fetch the tip revision for the directory resulted in failure.  Going back a few revisions, and using a range that includes HEAD worked much better.  Then just push to GitHub has normal, and start your rebase/push cronjob.</p>
<p>The JBoss projects are updated from SVN every 15 minutes.  But we&#8217;re updating from the anonymous SVN repository at JBoss, which itself is delayed from the developer repository by some amount of time.  So, ultimately, the GitHub mirror should be mostly up-to-date, but could lag behind actual developer commits by up to and hour, I reckon.</p>
<p>If you&#8217;re wanting to track these repositories using my git mirror, only track the vendor branch.  I make no claims about the stability or sanity of the &#8216;master&#8217; ref at any point in time.  I will make sure &#8216;vendor&#8217; exactly matches the Subversion history, though.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnokd.com/2008/08/21/github-mirrors-for-some-jboss-projects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mirroring SVN repository to GitHub</title>
		<link>http://www.fnokd.com/2008/08/20/mirroring-svn-repository-to-github/</link>
		<comments>http://www.fnokd.com/2008/08/20/mirroring-svn-repository-to-github/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 19:24:22 +0000</pubDate>
		<dc:creator>Bob McWhirter</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[jruby]]></category>
		<category><![CDATA[Subversion]]></category>

		<guid isPermaLink="false">http://www.fnokd.com/?p=413</guid>
		<description><![CDATA[So, I&#8217;m gearing up to work on some Java+Ruby (via JRuby) stuff.  The Java world still seems fairly entrenched in the cult of Subversion, while the Rubyists have gone with Git lately.
I&#8217;m still wrapping my mind around Git, but with GitHub, it&#8217;s fairly easy and straight-forward.  I paid my $7 for the micro [...]]]></description>
			<content:encoded><![CDATA[<p>So, I&#8217;m gearing up to work on some Java+Ruby (via JRuby) stuff.  The Java world still seems fairly entrenched in the cult of Subversion, while the Rubyists have gone with <a title="Git" href="http://git.or.cz/">Git</a> lately.</p>
<p>I&#8217;m still wrapping my mind around Git, but with <a title="GitHub" href="https://github.com/">GitHub</a>, it&#8217;s fairly easy and straight-forward.  I paid my $7 for the micro account, to give me room to screw around.</p>
<p>There&#8217;s quite a few posts about mirroring SVN to a Git repository, but I feel the need to add my own, of course.</p>
<p>My goal is mirror the trunk of the JRuby project from Codehaus SVN to my account on GitHub.  By doing this, I can track the trunk development, and also work on my own patches.</p>
<p>I started by creating an empty repository on my GitHub account, called &#8216;jruby&#8217;.</p>
<blockquote><p><a title="My JRuby Git repository" href="http://github.com/bobmcwhirter/jruby/tree/master">http://github.com/bobmcwhirter/jruby/tree/master</a></p></blockquote>
<p>Now, over on my always-on, Contegix-powered server, I create a brand new local git repository, also called jruby.</p>
<blockquote><p>mkdir jruby</p>
<p>cd jruby</p>
<p>git init</p></blockquote>
<p>Next I use &#8216;git svn init&#8217; to setup the SVN repository as a remote code source to track.  Using the -T switch points git to the trunk, and ignores branches and tags, which is fine for my purposes.</p>
<blockquote><p>git svn init -T <a title="JRuby svn repository" href="http://svn.codehaus.org/jruby/trunk/jruby/">http://svn.codehaus.org/jruby/trunk/jruby/</a></p></blockquote>
<p>That does not pull any code, but it lets my local working tree know that I&#8217;m going to be pulling from an SVN repository at some point.  This setup only occurs in your local repository, and does not seem to ever get pushed to GitHub once we get to that point.</p>
<p>So, now we do the initial pull.  Once again, this is on my always-on, Contegix-powered server, not my local laptop.  I&#8217;m doing this on a server because towards the end, we&#8217;ll be setting up a cronjob to accomplish it all.</p>
<blockquote><p>git svn fetch</p></blockquote>
<p>It&#8217;ll think for a while, it&#8217;ll slurp down the SVN revision history, it&#8217;ll stop and ponder occasionally, and eventually, it&#8217;ll be done.  Woo-hoo!  Our local working tree is now up-to-date with the subversion HEAD as of that moment.</p>
<p>To reduce disk-space used by your local repository, go ahead and run the garbage collector</p>
<blockquote><p>git gc</p></blockquote>
<p>On my system, that reduced the space from over 600mb to under 70mb.</p>
<p>Now, that&#8217;s great, but it&#8217;s still just on my local repository.  Time to push it to GitHub.  We&#8217;re not going to follow their directions exactly, since this will ultimately be a cronjob and needs to use ssh.  And I&#8217;m slightly paranoid about my ssh keys.</p>
<p>So, the first thing I do is create another keypair, for used only by my mirroring process, and only for pushing changes to github.  It has no passphrase.  This allows me to keep my top-secret keys off my shared, always-on server.  If these keys are compromised, all an attacker can use them for is to push changes to GitHub.  Which, being revision-control, is more annoying than dangerous.  (Hooray for &#8220;git reset&#8221;).</p>
<blockquote><p>ssh-keygen -t dsa -f .ssh/id_dsa_github_mirroring</p></blockquote>
<p>Next, I edit my .ssh/config to add a &#8220;fake host&#8221; so that ssh connections invoked by git will use this new key.</p>
<p>As with all previous bits, this is still on my always-on server, not my local laptop.</p>
<blockquote><p>Host githubmirror<br />
User git<br />
Hostname github.com<br />
IdentityFile /home/bob/.ssh/id_dsa_github_mirroring</p></blockquote>
<p>This will cause any invocation of &#8220;ssh githubmirror&#8221; into &#8220;ssh git@github.com -i .ssh/id_dsa_github_mirroring&#8221;.</p>
<p>I then installed id_dsa_github_mirroring.pub into my GitHub account.</p>
<p>Now, GitHub&#8217;s instructions say to run this command to add the GitHub repository as a remote named &#8220;origin&#8221;</p>
<blockquote><p>git remote add origin git@github.com:bobmcwhirter/jruby.git</p></blockquote>
<p>Instead, we teak it to use the &#8220;fake host&#8221; we added to .ssh/config</p>
<blockquote><p>git remote add origin git@githubmirror:bobmcwhirter/jruby.git</p></blockquote>
<p>We&#8217;re almost done, I promise.</p>
<p>Next, we need to do the first push from my server up to GitHub.  We first push to the &#8216;master&#8217; branch, since the repo really wants to have a master branch.</p>
<blockquote><p>git push origin master</p></blockquote>
<p>Now, GitHub doesn&#8217;t allow you to fork a repository you own, and since this mirror is owned by me, where can I do my own hacks and patches?  The &#8216;master&#8217; branch of course.  But I still want an unmolested, straight-from-subversion mirror.  So, I create a &#8216;vendor&#8217; branch in my workspace.  It&#8217;s initialized to match &#8216;master&#8217; exactly.</p>
<blockquote><p>git checkout -b vendor</p></blockquote>
<p>Now, I push that to GitHub, too.</p>
<blockquote><p>git push origin vendor</p></blockquote>
<p>Awesome.  I now have two branches, identical at the moment, called &#8220;vendor&#8221; and &#8220;master&#8221;.</p>
<p>Now, as far as I can tell, all the Subversion setup that we did only lives in the local repository on my always-on server.  Anyone who clones from the GitHub repository will not have that stuff.  They can of course do a &#8216;git svn init&#8217; themselves, to add it to their local repository.  But it doesn&#8217;t flow through GitHub.</p>
<p>But that&#8217;s fine, since I&#8217;ve been doing this on my always-on server anyhow.  My workspace is sitting in the &#8216;vendor&#8217; branch that&#8217;s tracking the vendor branch from github.</p>
<p>I can pull the latest changes from Subversion by typing</p>
<blockquote><p>git svn rebase</p></blockquote>
<p>The &#8216;rebase&#8217; command is neat, in that any changes that exist in the git repository are floated to be applied to whatever the latest HEAD is.  But since I&#8217;m only concerned with a one-way SVN-to-Git mirror, there will never be any changes to float, and this will just tack on subsequent SVN commits as Git commits onto the &#8216;vendor&#8217; branch.  It&#8217;ll leave the &#8216;master&#8217; branch un-touched.</p>
<p>After rebasing, you gotta push the &#8216;vendor&#8217; branch up to GitHub.</p>
<blockquote><p>git push origin vendor</p></blockquote>
<p>Now, type that every 15 minutes, and your &#8216;vendor&#8217; branch will stay mostly up-to-date.</p>
<p>Or use cron.</p>
<p>I&#8217;ve cronned a script that fires every 15 minutes</p>
<blockquote><p>#!/bin/sh</p>
<p>cd /home/bob/github-svn-mirrors/$1<br />
git svn rebase<br />
git push origin vendor</p></blockquote>
<p>It&#8217;s run with the repository name as the first (and only) argument</p>
<blockquote><p>*/15 * * * * /home/bob/github-svn-mirrors/bin/mirror jruby</p></blockquote>
<p>Now, over on my laptop, finally, I can clone the repository, work on topic branches, push to master and have my own controlled environment and fork, while knowing the &#8216;vendor&#8217; branch reflects the pure SVN state which I can also pull into my hackings as-desired.</p>
<p>When I submit a patch, if it ultimately floats back to me through the vendor branch, git is supposedly smart enough to realize that the same changes have arrived in my &#8216;master&#8217; (assuming it&#8217;s applied verbatim) and keep things nice and tidy.  Else, I can force a merge, trampling my half-assed patch with the official JRuby code.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnokd.com/2008/08/20/mirroring-svn-repository-to-github/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
