<?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>alan.lamielle.net &#187; version control</title>
	<atom:link href="http://alan.lamielle.net/tags/version-control/feed" rel="self" type="application/rss+xml" />
	<link>http://alan.lamielle.net</link>
	<description>Alan LaMielle</description>
	<lastBuildDate>Fri, 16 Sep 2011 16:50:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Git over SSHFS</title>
		<link>http://alan.lamielle.net/2009/07/08/git-over-sshfs</link>
		<comments>http://alan.lamielle.net/2009/07/08/git-over-sshfs#comments</comments>
		<pubDate>Wed, 08 Jul 2009 16:19:28 +0000</pubDate>
		<dc:creator>Alan LaMielle</dc:creator>
				<category><![CDATA[SIParCS 2009]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[aix]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[mount option]]></category>
		<category><![CDATA[siparcs]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[sshfs]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[version control]]></category>
		<category><![CDATA[zsh]]></category>

		<guid isPermaLink="false">http://alan.lamielle.net/?p=235</guid>
		<description><![CDATA[While working at NCAR, I stumbled into a situation where I needed to use Git over an sshfs mounted directory.  After beating on git and looking at its source code and not making much progress, I finally found a very simple solution related to how I mount the sshfs directory. I&#8217;ve been working on a [...]]]></description>
			<content:encoded><![CDATA[<p>While working at NCAR, I stumbled into a situation where I needed to use Git over an sshfs mounted directory.  After beating on git and looking at its source code and not making much progress, I finally found a very simple solution related to how I mount the sshfs directory.</p>
<p><span id="more-235"></span>I&#8217;ve been working on a codebase at NCAR for my summer SiParCS internship that is based in an Subversion repository.  However, the code I have is unreleased and I haven&#8217;t been given commit access to the repo.  Also, I hate the feeling of working on code that isn&#8217;t properly versioned as I&#8217;ve lost work one too many times and never want that to happen again.</p>
<p>While working, I found myself needing multiple versions of some code I was working on (where each version was gathering different sets of data).  Rather than commenting in/out various sections of the code, git branches would work perfectly in this situation.</p>
<p>Keep in mind that the code I&#8217;m working on resides on an AIX front-end node to a reasonably powerful supercomputer.  The tool support on this machine is lacking, I have no zsh, updated vim, git, etc.  To get around this tool deficiency, I mount the code I&#8217;m working on locally on my machine using sshfs.  This works great!  However&#8230;  I still have no version control, so I decide to attempt to add the code to a git repository.</p>
<p>I started by removing the <code>.svn</code> directories using one of my favorite shell aliases, <code>svnnuke</code>.  I then created a git repo with <code>git init</code>.  So far so good.  Finally, I attempted to add all of the files to the repo for the initial commit with git add ..  However, this produced the error: <code>'fatal: Unable to write new index file'</code>.  After searching through the git source for the location of the error string and trying many variations of various git commands, I was stuck.</p>
<p>This morning I approached the problem again, from a different angle.  I realized the problem was most likely not with git, but with the fact that I&#8217;m working over sshfs.  Therefore, I may solve the problem with how I am mounting the remote filesystem.  I googled for &#8216;git sshfs&#8217; and found an <a href="http://dragffy.com/blog/posts/using-sshfs-with-bazaar-bzr-or-git">article discussing Bazaar and SSHFS</a>.  This article containted the solution to my problem: mount the remote filesystem using sshfs with the <code>-oworkaround=rename</code> option.  Poof!  Git is suddenly working and I&#8217;m hacking on the code versioned under git and all its glory!</p>
]]></content:encoded>
			<wfw:commentRss>http://alan.lamielle.net/2009/07/08/git-over-sshfs/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

