<?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>petersteinberger.com &#187; sync</title>
	<atom:link href="http://petersteinberger.com/tag/sync/feed/" rel="self" type="application/rss+xml" />
	<link>http://petersteinberger.com</link>
	<description>bits about life, coding and stuff</description>
	<lastBuildDate>Fri, 13 Jan 2012 16:32:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>redmine &#8211; automatic synchronization of your git repo</title>
		<link>http://petersteinberger.com/2009/04/redmine-automatic-synchronization-of-your-git-repo/</link>
		<comments>http://petersteinberger.com/2009/04/redmine-automatic-synchronization-of-your-git-repo/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 21:39:06 +0000</pubDate>
		<dc:creator>studpete</dc:creator>
				<category><![CDATA[Random Stuff]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[gitosis]]></category>
		<category><![CDATA[redmine]]></category>
		<category><![CDATA[sync]]></category>

		<guid isPermaLink="false">http://petersteinberger.com/?p=49</guid>
		<description><![CDATA[Redmine is a really great project tracking tool. Its been there 3 years now, and lately smashed track from the throne as my former #1 tool. Its got all the features i wanted from trac (subprojects, git support, &#8230;), plus it&#8217;s much nicer to use (ajaax!), its written in rails (hell i like rails), and [...]
Related posts:<ol>
<li><a href='http://petersteinberger.com/2009/06/home/' rel='bookmark' title='HOME'>HOME</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://redmine.org" target="_blank" class="liexternal">Redmine</a> is a really great project tracking tool. Its been there 3 years now, and lately smashed track from the throne as my former #1 tool. Its got all the features i wanted from trac (subprojects, git support, &#8230;), plus it&#8217;s much nicer to use (ajaax!), its written in <a href="http://rubyonrails.org" target="_blank" class="liexternal">rails</a> (hell i like rails), and development is going really fast (thanks to Jean-Philippe Lang). I just use the trunk, never had any problems with it. (0.9 pre)</p>
<p>I am using apache, phusion passenger, mysql (i may switch to postgres, oracle, u know why&#8230;), git and gitosis on a ubuntu hardy machine.</p>
<p>Redmine has fine git integration. BUT &#8211; it can&#8217;t [yet] read from bare git repos, which you get with using gitosis as your git management tool. This is where the fun begins:</p>
<p>I assume that you already set up gitosis. (change the path to map your configuration)</p>
<p>So change your /home/git/repositories/&lt;yourepo&gt;/hooks/post-update file</p>
<p>[cc lang="bash"]</p>
<p>echo &#8220;Update server local copy&#8230;&#8221;</p>
<p>export GIT_DIR=$WORKDIR/.git</p>
<p>pushd $WORKDIR &gt; /dev/null<br />
git reset &#8211;hard<br />
git pull<br />
popd &gt; /dev/null</p>
<p>WORKDIR=&#8221;/home/git/checkout/&lt;yourrepo&gt;&#8221;</p>
<p>/usr/bin/git-update-server-info</p>
<p>unset GIT_DIR</p>
<p>[/cc]</p>
<p>Well, it&#8217;s not perfect, maybe some people are more comfortable if the whole output is moved to /dev/null, but it works pretty well.</p>
<p>Don&#8217;t forget to create a _local git copy_ (via git clone git@localhost:&lt;yourrepo&gt;.git in /home/git/checkout (or whatever folder you prefer)</p>
<p>Comments on this are appreciated. It took me a while to figure that out&#8230;</p>
<p>If you are on <a href="http://github.com" target="_blank" class="liexternal">github</a>, you may like <a href="http://www.pragmatic-source.com/en/opensource/tips/automatic-synchronization-2-git-repositories" target="_blank" class="liexternal">this</a> instead.<a href="http://www.pragmatic-source.com/en/opensource/tips/automatic-synchronization-2-git-repositories"><br />
</a></p>
<p>Related posts:<ol>
<li><a href='http://petersteinberger.com/2009/06/home/' rel='bookmark' title='HOME'>HOME</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://petersteinberger.com/2009/04/redmine-automatic-synchronization-of-your-git-repo/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

