<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-11485756.post4698299713299644391..comments</id><updated>2012-01-26T04:27:39.769+01:00</updated><category term='ruby'/><category term='viaboxx'/><category term='javazone'/><category term='wiki'/><category term='blogger'/><category term='agile'/><category term='java'/><category term='git'/><category term='cms'/><category term='spring'/><category term='stuff'/><category term='portal'/><category term='iplabs'/><category term='maven'/><category term='objectware'/><category term='jazoon'/><category term='blogging'/><category term='guava'/><category term='git-svn'/><title type='text'>Comments on Thomas Ferris Nicolaisen's blog: Git-SVN Mirror without the annoying update-ref</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.tfnico.com/feeds/4698299713299644391/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default'/><link rel='alternate' type='text/html' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html'/><author><name>Thomas Ferris Nicolaisen</name><uri>https://profiles.google.com/101470099289717563604</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-MH85nZaMLeo/AAAAAAAAAAI/AAAAAAAABO8/cZT0o_8utuc/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-11485756.post-2965291718719532478</id><published>2012-01-26T04:27:39.769+01:00</published><updated>2012-01-26T04:27:39.769+01:00</updated><title type='text'>@tfnico, a few items you might want to consider fo...</title><content type='html'>@tfnico, a few items you might want to consider for the big re-write of the big git-svn guide:&lt;br /&gt;&lt;br /&gt;1. Use a local svn repository if possible. Yes, svnsync is your friend. Splitting up the network transfer and the svn-&amp;gt;git migration into two separate steps will greatly speed up the entire process, even for medium-size projects.&lt;br /&gt;&lt;br /&gt;2. Use an authors.txt file. Your git log will thank you!&lt;br /&gt;&lt;br /&gt;3. When you don&amp;#39;t have admin access to the svn server, jenkins can be used to poll for changes, as I wrote above.&lt;br /&gt;&lt;br /&gt;Also, some related projects which are currently active:&lt;br /&gt;&lt;br /&gt; * reposurgeon: http://esr.ibiblio.org/?p=4071&lt;br /&gt;&lt;br /&gt; * svn-dump-fast-export: https://plus.google.com/u/0/106045714513828999745/posts/DAZjRkgJusw</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/2965291718719532478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/2965291718719532478'/><link rel='alternate' type='text/html' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html?showComment=1327548459769#c2965291718719532478' title=''/><author><name>James Stansell</name><uri>https://gitorious.org/~jstansel</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html' ref='tag:blogger.com,1999:blog-11485756.post-4698299713299644391' source='http://www.blogger.com/feeds/11485756/posts/default/4698299713299644391' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-651241389'/></entry><entry><id>tag:blogger.com,1999:blog-11485756.post-8178386931366367064</id><published>2012-01-25T09:31:24.908+01:00</published><updated>2012-01-25T09:31:24.908+01:00</updated><title type='text'>Just an update about my jenkins job to fetch from ...</title><content type='html'>Just an update about my jenkins job to fetch from svn and push to the bare repo. The snippet above was interesting but I think duplicated (poorly) what git svn fetch already does. So now I have moved the git svn fetch into the trigger script.&lt;br /&gt;&lt;br /&gt;cd /Users/james/src/git-svn/git-test-fetch&lt;br /&gt;fetchinfo=&amp;quot;$(git svn fetch)&amp;quot;&lt;br /&gt;[[ $? -ne 0 || ${#fetchinfo} -eq 0 ]] &amp;amp;&amp;amp; exit 1 #the fetch either failed or found no change&lt;br /&gt;read d &amp;lt;&amp;lt;&amp;lt; $(echo &amp;quot;$fetchinfo&amp;quot; |awk &amp;#39;/^r/ {print $1}&amp;#39;) #description&lt;br /&gt;cat &amp;lt;&amp;lt;- _EOD&lt;br /&gt; &amp;lt; cause$z&amp;gt;&amp;lt; pre&amp;gt;&lt;br /&gt; $(git svn log --oneline --show-commit --remotes -${d// *r/:})&lt;br /&gt; &lt;br /&gt; $fetchinfo&lt;br /&gt; &amp;lt; /pre&amp;gt;&amp;lt; /cause&amp;gt;&lt;br /&gt; &amp;lt; description$z&amp;gt;$d&amp;lt; /description&amp;gt;&lt;br /&gt; _EOD</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/8178386931366367064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/8178386931366367064'/><link rel='alternate' type='text/html' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html?showComment=1327480284908#c8178386931366367064' title=''/><author><name>James Stansell</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html' ref='tag:blogger.com,1999:blog-11485756.post-4698299713299644391' source='http://www.blogger.com/feeds/11485756/posts/default/4698299713299644391' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-651241389'/></entry><entry><id>tag:blogger.com,1999:blog-11485756.post-7845019384292089643</id><published>2012-01-21T16:15:42.835+01:00</published><updated>2012-01-21T16:15:42.835+01:00</updated><title type='text'>I&amp;#39;m glad you like it! Feel free to suggest imp...</title><content type='html'>I&amp;#39;m glad you like it! Feel free to suggest improvements. In particular on MS/Win it would need cygwin, whereas rewriting in groovy could make it easier to use there.&lt;br /&gt;&lt;br /&gt;Thanks again for the very helpful git-svn guide!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/7845019384292089643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/7845019384292089643'/><link rel='alternate' type='text/html' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html?showComment=1327158942835#c7845019384292089643' title=''/><author><name>James Stansell</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html' ref='tag:blogger.com,1999:blog-11485756.post-4698299713299644391' source='http://www.blogger.com/feeds/11485756/posts/default/4698299713299644391' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-651241389'/></entry><entry><id>tag:blogger.com,1999:blog-11485756.post-5895704569868606660</id><published>2012-01-21T12:15:44.942+01:00</published><updated>2012-01-21T12:15:44.942+01:00</updated><title type='text'>Tanks for the tip, James! If I ever get around to ...</title><content type='html'>Tanks for the tip, James! If I ever get around to doing the big re-write of the big git-svn guide, I&amp;#39;ll include this.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/5895704569868606660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/5895704569868606660'/><link rel='alternate' type='text/html' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html?showComment=1327144544942#c5895704569868606660' title=''/><author><name>Thomas Ferris Nicolaisen</name><uri>http://www.blogger.com/profile/17464665832399025601</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11536302075262044655'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-MH85nZaMLeo/AAAAAAAAAAI/AAAAAAAABO8/cZT0o_8utuc/s512-c/photo.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html' ref='tag:blogger.com,1999:blog-11485756.post-4698299713299644391' source='http://www.blogger.com/feeds/11485756/posts/default/4698299713299644391' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1610545579'/></entry><entry><id>tag:blogger.com,1999:blog-11485756.post-9219351630445957977</id><published>2012-01-21T08:07:44.342+01:00</published><updated>2012-01-21T08:07:44.342+01:00</updated><title type='text'>Anyone following along here may find this snippet ...</title><content type='html'>Anyone following along here may find this snippet useful:&lt;br /&gt;&lt;br /&gt;test $(git svn find-rev $(git log --all --oneline -n 1 |awk &amp;#39;{print $1}&amp;#39;)) -ne $(svn info $(git config --local svn-remote.svn.url) |awk &amp;#39;/^Revision:/ {print $2}&amp;#39;)&lt;br /&gt;&lt;br /&gt;I am using it with the Jenkins ScriptTrigger plugin to poll for when the svn Revision no longer matches the latest in the fetching repo, in order to automate the mirroring.&lt;br /&gt;&lt;br /&gt;Of course, if you have admin access to the svn repo you should probably just set up a commit hook there.&lt;br /&gt;&lt;br /&gt;FYI, the output looks like this:&lt;br /&gt;+++ git log --all --oneline -n 1&lt;br /&gt;+++ awk &amp;#39;{print $1}&amp;#39;&lt;br /&gt;++ git svn find-rev 90fcd3c&lt;br /&gt;++ awk &amp;#39;/^Revision:/ {print $2}&amp;#39;&lt;br /&gt;+++ git config --local svn-remote.svn.url&lt;br /&gt;++ svn info file:///Users/james/src/svn-test&lt;br /&gt;+ test 77 -ne 77</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/9219351630445957977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/9219351630445957977'/><link rel='alternate' type='text/html' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html?showComment=1327129664342#c9219351630445957977' title=''/><author><name>James Stansell</name><uri>https://plus.google.com/u/0/112360877887145932233/posts/AbHPWYN6Aqy</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html' ref='tag:blogger.com,1999:blog-11485756.post-4698299713299644391' source='http://www.blogger.com/feeds/11485756/posts/default/4698299713299644391' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-651241389'/></entry><entry><id>tag:blogger.com,1999:blog-11485756.post-315891272201506489</id><published>2012-01-13T10:35:11.916+01:00</published><updated>2012-01-13T10:35:11.916+01:00</updated><title type='text'>Hi James, thanks for commenting!

Yes, after creat...</title><content type='html'>Hi James, thanks for commenting!&lt;br /&gt;&lt;br /&gt;Yes, after creating the bare repo, the &amp;quot;default branch&amp;quot; has to be set to be trunk like this:&lt;br /&gt;&lt;br /&gt;git symbolic-ref HEAD refs/heads/trunk&lt;br /&gt;&lt;br /&gt;I&amp;#39;m not really sure why I didn&amp;#39;t include that step in this guide. I think I did do it in my JavaZone presentation, so I must have discovered that after I wrote the original guide. I&amp;#39;ll see if I get  a chance to work that in. Maybe write a completely overhauled guide some day :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/315891272201506489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/315891272201506489'/><link rel='alternate' type='text/html' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html?showComment=1326447311916#c315891272201506489' title=''/><author><name>Thomas Ferris Nicolaisen</name><uri>http://www.blogger.com/profile/17464665832399025601</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11536302075262044655'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-MH85nZaMLeo/AAAAAAAAAAI/AAAAAAAABO8/cZT0o_8utuc/s512-c/photo.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html' ref='tag:blogger.com,1999:blog-11485756.post-4698299713299644391' source='http://www.blogger.com/feeds/11485756/posts/default/4698299713299644391' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1610545579'/></entry><entry><id>tag:blogger.com,1999:blog-11485756.post-5631618172326756830</id><published>2012-01-11T06:35:20.683+01:00</published><updated>2012-01-11T06:35:20.683+01:00</updated><title type='text'>After a little more reading and playing around it ...</title><content type='html'>After a little more reading and playing around it looks like I could just as well done the following to fix up the bare repo, to create the master branch and use trunk to set the start-point.&lt;br /&gt;&lt;br /&gt;$git branch master trunk</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/5631618172326756830'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/5631618172326756830'/><link rel='alternate' type='text/html' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html?showComment=1326260120683#c5631618172326756830' title=''/><author><name>James Stansell</name><uri>https://plus.google.com/112360877887145932233/about</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html' ref='tag:blogger.com,1999:blog-11485756.post-4698299713299644391' source='http://www.blogger.com/feeds/11485756/posts/default/4698299713299644391' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-349047809'/></entry><entry><id>tag:blogger.com,1999:blog-11485756.post-4633383900433431399</id><published>2012-01-11T06:22:14.308+01:00</published><updated>2012-01-11T06:22:14.308+01:00</updated><title type='text'>I tried this method a few times today and kept get...</title><content type='html'>I tried this method a few times today and kept getting snagged when cloning the bare repo. Kept getting &amp;quot;warning: remote HEAD refers to nonexistent ref, unable to checkout.&amp;quot;&lt;br /&gt;&lt;br /&gt;Inside the bare repo I found that HEAD pointed to refs/heads/master but the master branch did not exist. So I edited HEAD to use refs/heads/trunk and was able to proceed. Everything is looking fine so far.&lt;br /&gt;&lt;br /&gt;This was on MacOSX 10.6.8 with git 1.7.8.3.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/4633383900433431399'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/4633383900433431399'/><link rel='alternate' type='text/html' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html?showComment=1326259334308#c4633383900433431399' title=''/><author><name>James Stansell</name><uri>https://plus.google.com/112360877887145932233/about</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html' ref='tag:blogger.com,1999:blog-11485756.post-4698299713299644391' source='http://www.blogger.com/feeds/11485756/posts/default/4698299713299644391' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-349047809'/></entry><entry><id>tag:blogger.com,1999:blog-11485756.post-5281213984464146915</id><published>2011-11-14T20:12:34.067+01:00</published><updated>2011-11-14T20:12:34.067+01:00</updated><title type='text'>@Gin: To be honest, I&amp;#39;ve never tried svn init ...</title><content type='html'>@Gin: To be honest, I&amp;#39;ve never tried svn init twice in the same repository. It could be that it works fine, and the old configuration is properly overwritten. Maybe you have to remove the old svn-remote first, and/or the .git/svn folder. Try it out, and let me know.  (but if you&amp;#39;re worried about corrupting your working git-svn clone, make a copy of it first).</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/5281213984464146915'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/5281213984464146915'/><link rel='alternate' type='text/html' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html?showComment=1321297954067#c5281213984464146915' title=''/><author><name>Thomas Ferris Nicolaisen</name><uri>http://www.blogger.com/profile/17464665832399025601</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11536302075262044655'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-MH85nZaMLeo/AAAAAAAAAAI/AAAAAAAABO8/cZT0o_8utuc/s512-c/photo.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html' ref='tag:blogger.com,1999:blog-11485756.post-4698299713299644391' source='http://www.blogger.com/feeds/11485756/posts/default/4698299713299644391' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1610545579'/></entry><entry><id>tag:blogger.com,1999:blog-11485756.post-4439979191243103582</id><published>2011-11-14T16:13:34.085+01:00</published><updated>2011-11-14T16:13:34.085+01:00</updated><title type='text'>It would be great if a simple &amp;#39;git svn init&amp;#3...</title><content type='html'>It would be great if a simple &amp;#39;git svn init&amp;#39; worked. I was just concerned about the metadata (.git/svn/{.metadata,refs}) and stuff that might take a lot of time to rebuild. In contrast, the pure git-counterpart &amp;#39;git remote rename&amp;#39; feels fast and safe.&lt;br /&gt;&lt;br /&gt;If a simple &amp;#39;git-svn init --prefix..&amp;#39; followed by  a &amp;#39;git svn rebase&amp;#39; will rebuild the metadata quickly and safely, that&amp;#39;s great. Why shall I use &amp;quot;clean clones&amp;quot;? What kind of mess are referring to: e.g old stuff in .git/svn dir, or anything else?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/4439979191243103582'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/4439979191243103582'/><link rel='alternate' type='text/html' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html?showComment=1321283614085#c4439979191243103582' title=''/><author><name>gin</name><uri>http://inger.myopenid.com/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/openid16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html' ref='tag:blogger.com,1999:blog-11485756.post-4698299713299644391' source='http://www.blogger.com/feeds/11485756/posts/default/4698299713299644391' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-726191793'/></entry><entry><id>tag:blogger.com,1999:blog-11485756.post-3823401928266158657</id><published>2011-11-14T15:52:12.086+01:00</published><updated>2011-11-14T15:52:12.086+01:00</updated><title type='text'>Hmm, I think that git-svn needs to be re-initializ...</title><content type='html'>Hmm, I think that git-svn needs to be re-initialized (with the --prefix parameter), and to avoid any mess, I&amp;#39;ve done this in clean clones (so far).&lt;br /&gt;&lt;br /&gt;However, this all takes place on the developer&amp;#39;s machines. There&amp;#39;s no need to change anything with the fetching/bare repos. So the developers can clone their old repo locally (fastest), add the proper mirror remote, and do git svn init with the --prefix=mirror/. &lt;br /&gt;&lt;br /&gt;For me most of the work was rebuilding the IDE configuration files that were scattered around in the repository work tree.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/3823401928266158657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/3823401928266158657'/><link rel='alternate' type='text/html' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html?showComment=1321282332086#c3823401928266158657' title=''/><author><name>Thomas Ferris Nicolaisen</name><uri>http://www.blogger.com/profile/17464665832399025601</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11536302075262044655'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-MH85nZaMLeo/AAAAAAAAAAI/AAAAAAAABO8/cZT0o_8utuc/s512-c/photo.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html' ref='tag:blogger.com,1999:blog-11485756.post-4698299713299644391' source='http://www.blogger.com/feeds/11485756/posts/default/4698299713299644391' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1610545579'/></entry><entry><id>tag:blogger.com,1999:blog-11485756.post-762994770767209106</id><published>2011-11-14T15:40:09.247+01:00</published><updated>2011-11-14T15:40:09.247+01:00</updated><title type='text'>Good idea - thanks for that too!
I&amp;#39;d still pre...</title><content type='html'>Good idea - thanks for that too!&lt;br /&gt;I&amp;#39;d still prefer to do it once (on the server), rather than setting it up on the growing numbers  of developer boxes. I guess there is not easy way to share repo configuration (apart from nasty tricks to commit them too) - I&amp;#39;d be happy to be wrong one this.&lt;br /&gt;&lt;br /&gt;Also, do you think it&amp;#39;s easy and fast to migrate to this -synced-prefix setup? (the repo is big) &lt;br /&gt;I guess I could do a &amp;#39;git remote rename oldmirror svn&amp;#39; , where &amp;#39;svn&amp;#39; is default; but I&amp;#39;d prefer that one to &amp;#39;mirror&amp;#39; instead.. can&amp;#39;t see anything obvious on man git-svn. Any ideas? thanks again.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/762994770767209106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/762994770767209106'/><link rel='alternate' type='text/html' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html?showComment=1321281609247#c762994770767209106' title=''/><author><name>gin</name><uri>http://inger.myopenid.com/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/openid16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html' ref='tag:blogger.com,1999:blog-11485756.post-4698299713299644391' source='http://www.blogger.com/feeds/11485756/posts/default/4698299713299644391' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-726191793'/></entry><entry><id>tag:blogger.com,1999:blog-11485756.post-2260943417060794092</id><published>2011-11-14T15:32:11.513+01:00</published><updated>2011-11-14T15:32:11.513+01:00</updated><title type='text'>Here&amp;#39;s a nice one-liner for the above setup:

...</title><content type='html'>Here&amp;#39;s a nice one-liner for the above setup:&lt;br /&gt;&lt;br /&gt;git config remote.mirror.pushurl WARNING_USE_SVN_DCOMMIT_INSTEAD_OF_PUSH&lt;br /&gt;&lt;br /&gt;This will cause developers to see an error message when trying to push to the bare repo (mirror).</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/2260943417060794092'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/2260943417060794092'/><link rel='alternate' type='text/html' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html?showComment=1321281131513#c2260943417060794092' title=''/><author><name>Thomas Ferris Nicolaisen</name><uri>http://www.blogger.com/profile/17464665832399025601</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11536302075262044655'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-MH85nZaMLeo/AAAAAAAAAAI/AAAAAAAABO8/cZT0o_8utuc/s512-c/photo.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html' ref='tag:blogger.com,1999:blog-11485756.post-4698299713299644391' source='http://www.blogger.com/feeds/11485756/posts/default/4698299713299644391' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1610545579'/></entry><entry><id>tag:blogger.com,1999:blog-11485756.post-3350806592652312929</id><published>2011-11-14T15:24:45.680+01:00</published><updated>2011-11-14T15:24:45.680+01:00</updated><title type='text'>Gin: Perhaps a more practical way to avoid acciden...</title><content type='html'>Gin: Perhaps a more practical way to avoid accidents is to have each developer disable the push configuration in their local repositories:&lt;br /&gt;&lt;br /&gt;http://stackoverflow.com/questions/527833/how-to-configure-git-to-avoid-accidental-git-push</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/3350806592652312929'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/3350806592652312929'/><link rel='alternate' type='text/html' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html?showComment=1321280685680#c3350806592652312929' title=''/><author><name>Thomas Ferris Nicolaisen</name><uri>http://www.blogger.com/profile/17464665832399025601</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11536302075262044655'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-MH85nZaMLeo/AAAAAAAAAAI/AAAAAAAABO8/cZT0o_8utuc/s512-c/photo.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html' ref='tag:blogger.com,1999:blog-11485756.post-4698299713299644391' source='http://www.blogger.com/feeds/11485756/posts/default/4698299713299644391' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1610545579'/></entry><entry><id>tag:blogger.com,1999:blog-11485756.post-6735678152622981006</id><published>2011-11-14T15:20:48.830+01:00</published><updated>2011-11-14T15:20:48.830+01:00</updated><title type='text'>Good point, thanks Thomas. I&amp;#39;d probably want t...</title><content type='html'>Good point, thanks Thomas. I&amp;#39;d probably want to ensure that trouble doesn&amp;#39;t strike (most our devs are new to git and might do mistakes). However, I&amp;#39;d prefer not making the whole mirror repo read-only (some of as are pushing pure-git branches there as well..), so will take a look at the gitolite setup: my impression is that it may be able to protect specific branches.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/6735678152622981006'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/6735678152622981006'/><link rel='alternate' type='text/html' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html?showComment=1321280448830#c6735678152622981006' title=''/><author><name>gin</name><uri>http://inger.myopenid.com/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/openid16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html' ref='tag:blogger.com,1999:blog-11485756.post-4698299713299644391' source='http://www.blogger.com/feeds/11485756/posts/default/4698299713299644391' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-726191793'/></entry><entry><id>tag:blogger.com,1999:blog-11485756.post-7514302173533381955</id><published>2011-11-14T14:54:06.297+01:00</published><updated>2011-11-14T14:54:06.297+01:00</updated><title type='text'>Hi Gin, thanks for your comment!

Generally, no, I...</title><content type='html'>Hi Gin, thanks for your comment!&lt;br /&gt;&lt;br /&gt;Generally, no, I haven&amp;#39;t seen any real problems with the prefix setup.&lt;br /&gt;&lt;br /&gt;There is one tiny detail: If you accidentally push directly to the bare bare repo (instead of doing a dcommit), and you need to revert that by doing a forced push to remote/svn, you don&amp;#39;t have any local reference any more to which commit the SVN HEAD is at. However, this is not really a problem if you are (a) careful, or (b) take measures to make the bare repo non-writable for developers.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/7514302173533381955'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/7514302173533381955'/><link rel='alternate' type='text/html' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html?showComment=1321278846297#c7514302173533381955' title=''/><author><name>Thomas Ferris Nicolaisen</name><uri>http://www.blogger.com/profile/17464665832399025601</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11536302075262044655'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-MH85nZaMLeo/AAAAAAAAAAI/AAAAAAAABO8/cZT0o_8utuc/s512-c/photo.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html' ref='tag:blogger.com,1999:blog-11485756.post-4698299713299644391' source='http://www.blogger.com/feeds/11485756/posts/default/4698299713299644391' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1610545579'/></entry><entry><id>tag:blogger.com,1999:blog-11485756.post-4398063623581253384</id><published>2011-11-14T14:04:05.526+01:00</published><updated>2011-11-14T14:04:05.526+01:00</updated><title type='text'>Great, I came to a similar conclusions earlier - b...</title><content type='html'>Great, I came to a similar conclusions earlier - but haven&amp;#39;t seen it written down and forgot it in the meantime as well (so kept using update-ref to keep the two pointers refs/remotes/trunk refs/svn/trunk refs/remotes/mirror/svn/trunk in sync).&lt;br /&gt;&lt;br /&gt;Have you run ran into any negative side-effects/gotchas with this --prefix setup since?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/4398063623581253384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11485756/4698299713299644391/comments/default/4398063623581253384'/><link rel='alternate' type='text/html' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html?showComment=1321275845526#c4398063623581253384' title=''/><author><name>gin</name><uri>http://inger.myopenid.com/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/openid16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tfnico.com/2011/09/git-svn-mirror-without-annoying-update.html' ref='tag:blogger.com,1999:blog-11485756.post-4698299713299644391' source='http://www.blogger.com/feeds/11485756/posts/default/4698299713299644391' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-726191793'/></entry></feed>
