<?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>Shannon Cornish &#187; gitosis</title>
	<atom:link href="http://www.shannoncornish.com/blog/tag/gitosis/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shannoncornish.com/blog</link>
	<description></description>
	<lastBuildDate>Mon, 26 Jul 2010 09:22:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Setting up Gitosis with Windows Server 2008</title>
		<link>http://www.shannoncornish.com/blog/2009/04/gitosis-windows-server-2008/</link>
		<comments>http://www.shannoncornish.com/blog/2009/04/gitosis-windows-server-2008/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 03:56:35 +0000</pubDate>
		<dc:creator>Shannon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[gitosis]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.shannoncornish.com/blog/?p=121</guid>
		<description><![CDATA[As part of our Git server configuration, we&#8217;re using Gitosis manage multiple repositories with different authorization requirements using a single SSH account. I&#8217;m assuming you&#8217;ve read my previous post on Setting up a Git server with Windows Server 2008 and are ready to follow along as the steps assume you&#8217;ve already installed Cygwin with Git, [...]]]></description>
			<content:encoded><![CDATA[<p>As part of our Git server configuration, we&#8217;re using <a href="http://eagain.net/gitweb/?p=gitosis.git">Gitosis</a> manage multiple repositories with different authorization requirements using a single SSH account.</p>
<p>I&#8217;m assuming you&#8217;ve read my previous post on <a href="http://www.shannoncornish.com/blog/2009/04/git-server-windows-2008/">Setting up a Git server with Windows Server 2008</a> and are ready to follow along as the steps assume you&#8217;ve already installed Cygwin with Git, OpenSSH and Python.</p>
<p>The blog post by Sandesh Singh on <a href="http://sandesh247.blogspot.com/2009/03/on-git-gitosis-and-python-issues-on.html">setting up Gitosis with Windows Vista</a> was an amazing resource and without it, I would still be trying to get Gitosis working.</p>
<h3>Installing Python Setuptools</h3>
<ul>
<li>Download the <a href="http://pypi.python.org/pypi/setuptools">Python Setuptools</a> egg.</li>
<li>Open a Cygwin bash prompt and navigate to the directory containing your download.</li>
<li>Execute
<pre>sh setuptools-0.6c9-py2.5.egg</pre>
</li>
<li>You should see
<pre>
Processing setuptools-0.6c9-py2.5.egg
Copying setuptools-0.6c9-py2.5.egg to /usr/lib/python2.5/site-packages
Adding setuptools 0.6c9 to easy-install.pth file
Installing easy_install script to /usr/bin
Installing easy_install-2.5 script to /usr/bin

Installed /usr/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg
Processing dependencies for setuptools==0.6c9
Finished processing dependencies for setuptools==0.6c9
</pre>
</li>
<li>Execute
<pre>chmod +r /usr/lib/python2.5/ -R</pre>
</li>
</ul>
<h3>Installing Gitosis</h3>
<ul>
<li>Download or clone the Gitosis repository</li>
<li>Open a Cygwin bash prompt and navigate to the directory containing Gitosis.</li>
<li>
Execute</p>
<pre>python setup.py install</pre>
</li>
<li>Copy the public key of the user you wish to administer the Gitosis server to /tmp directory.</li>
<li>Log out of the Administrator account and login as the git account.</li>
<li>Open a Cygwin bash prompt and execute
<pre>gitosis-init < /tmp/id_rsa.pub</pre>
</li>
<li>
You should see</p>
<pre>
Initialized empty Git repository in /home/git/repositories/gitosis-admin.git/
Reinitialized existing Git repository in /home/git/repositories/gitosis-admin.git/
</pre>
</li>
<li> Execute
<pre>chmod 755 /home/git/repositories/gitosis-admin.git/hooks/post-update</pre>
</li>
</ul>
<p>Gitosis is now setup and we're ready to clone the gitosis-admin repository to create and administer Git repositories on our server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shannoncornish.com/blog/2009/04/gitosis-windows-server-2008/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
