<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:series="http://unfoldingneurons.com/"
		>
<channel>
	<title>Comments on: Changing git submodule URLs</title>
	<atom:link href="http://therealadam.com/archive/2008/05/08/changing-git-submodule-urls/feed/" rel="self" type="application/rss+xml" />
	<link>http://therealadam.com/archive/2008/05/08/changing-git-submodule-urls/</link>
	<description>Polymath practicing programming, probably procrastinating</description>
	<lastBuildDate>Fri, 16 Jul 2010 03:30:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: david</title>
		<link>http://therealadam.com/archive/2008/05/08/changing-git-submodule-urls/comment-page-1/#comment-729</link>
		<dc:creator>david</dc:creator>
		<pubDate>Fri, 12 Jun 2009 14:05:25 +0000</pubDate>
		<guid isPermaLink="false">http://therealadam.com/archive/2008/05/08/changing-git-submodule-urls/#comment-729</guid>
		<description>seems there is a way to do that properly:

in the submodule directory do:
git remote update
git merge origin/master

then you can add, commit and push the change to the submodule in your main project.</description>
		<content:encoded><![CDATA[<p>seems there is a way to do that&nbsp;properly:</p>
<p>in the submodule directory do:<br />
git remote update<br />
git merge&nbsp;origin/master</p>
<p>then you can add, commit and push the change to the submodule in your main&nbsp;project.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthieu Sadouni</title>
		<link>http://therealadam.com/archive/2008/05/08/changing-git-submodule-urls/comment-page-1/#comment-522</link>
		<dc:creator>Matthieu Sadouni</dc:creator>
		<pubDate>Sun, 25 Jan 2009 10:25:33 +0000</pubDate>
		<guid isPermaLink="false">http://therealadam.com/archive/2008/05/08/changing-git-submodule-urls/#comment-522</guid>
		<description>Thanks for the tip. Just another thing that caused me trouble : when deploying with Capistrano you need to clear the shared/cached-copy directory or it will try to clone the old version of the plugin and fail with &quot;Unable to checkout &quot;.

I now use this task when i change a submodule :

namespace :deploy do
  task :clear_cached_copy do
    run &lt;&lt;-CMD
      rm -rf #{shared_path}/cached-copy
    CMD
  end
end

and deploy with :
cap deploy:clear_cached_copy
cap deploy

Maybe you could clear only the plugin subdirectory instead of the whole cached-copy and pass the plugin name to the task, I&#039;ll have to try that.</description>
		<content:encoded><![CDATA[<p>Thanks for the tip. Just another thing that caused me trouble : when deploying with Capistrano you need to clear the shared/cached-copy directory or it will try to clone the old version of the plugin and fail with &#8220;Unable to checkout&nbsp;&#8221;.</p>
<p>I now use this task when i change a submodule&nbsp;:</p>
<p>namespace :deploy do<br />
  task :clear_cached_copy do<br />
    run &lt;&lt;-<span class="caps">CMD</span><br />
      rm -rf #{shared_path}/cached-copy<br />
    <span class="caps"><span class="caps">CMD</span></span><br />
  end<br />&nbsp;end</p>
<p>and deploy with :<br />
cap deploy:clear_cached_copy<br />
cap&nbsp;deploy</p>
<p>Maybe you could clear only the plugin subdirectory instead of the whole cached-copy and pass the plugin name to the task, I&#8217;ll have to try&nbsp;that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://therealadam.com/archive/2008/05/08/changing-git-submodule-urls/comment-page-1/#comment-384</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Tue, 01 Jul 2008 14:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://therealadam.com/archive/2008/05/08/changing-git-submodule-urls/#comment-384</guid>
		<description>Out of interest, what&#039;s Wrong with The Wrong Way? As long as you fix up the repository URL in your local clone of the submodule (e.g. edit its .git/config, or just blow it away and git submodule update from scratch) it seems like it should chug along fine without having to completely nuke and re-add the whole submodule. What gives?</description>
		<content:encoded><![CDATA[<p>Out of interest, what&#8217;s Wrong with The Wrong Way? As long as you fix up the repository <span class="caps"><span class="caps">URL</span> </span>in your local clone of the submodule (e.g. edit its .git/config, or just blow it away and git submodule update from scratch) it seems like it should chug along fine without having to completely nuke and re-add the whole submodule. What&nbsp;gives?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Eley</title>
		<link>http://therealadam.com/archive/2008/05/08/changing-git-submodule-urls/comment-page-1/#comment-368</link>
		<dc:creator>Steve Eley</dc:creator>
		<pubDate>Mon, 09 Jun 2008 19:59:49 +0000</pubDate>
		<guid isPermaLink="false">http://therealadam.com/archive/2008/05/08/changing-git-submodule-urls/#comment-368</guid>
		<description>Yes, thank you!  We&#039;ve been trying to make submodules work for a repository of code shared between several applications, and the things submodules _don&#039;t_ do that svn:externals did (like auto-updating) have been driving us nuts.  We&#039;re starting to wonder if it&#039;s more trouble than it&#039;s worth.</description>
		<content:encoded><![CDATA[<p>Yes, thank you!  We&#8217;ve been trying to make submodules work for a repository of code shared between several applications, and the things submodules <em>don&#8217;t</em> do that svn:externals did (like auto-updating) have been driving us nuts.  We&#8217;re starting to wonder if it&#8217;s more trouble than it&#8217;s&nbsp;worth.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ch0wda</title>
		<link>http://therealadam.com/archive/2008/05/08/changing-git-submodule-urls/comment-page-1/#comment-357</link>
		<dc:creator>ch0wda</dc:creator>
		<pubDate>Thu, 05 Jun 2008 21:30:57 +0000</pubDate>
		<guid isPermaLink="false">http://therealadam.com/archive/2008/05/08/changing-git-submodule-urls/#comment-357</guid>
		<description>Adam,

Thanks, I have learned from your mistakes.  This yak still has all it&#039;s hair.</description>
		<content:encoded><![CDATA[<p>Adam,</p>
<p>Thanks, I have learned from your mistakes.  This yak still has all it&#8217;s&nbsp;hair.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
