From: Simon McVittie Date: Fri, 7 May 2010 16:46:21 +0000 (+0100) Subject: gitremotes: don't fetch tags, other than from ikiwiki.info X-Git-Tag: 3.20100515~71^2~4 X-Git-Url: http://git.tremily.us/?p=ikiwiki.git;a=commitdiff_plain;h=c2c57f0cfba182964359f0ee71f84fb1b935d10f;ds=sidebyside gitremotes: don't fetch tags, other than from ikiwiki.info Getting this change in an existing git clone requires removing or reconfiguring the remotes. --- diff --git a/gitremotes b/gitremotes index f596c650f..6c03011a8 100755 --- a/gitremotes +++ b/gitremotes @@ -16,7 +16,9 @@ while () { my ($oldurl)=$info=~/URL: (.*)/m; if ($oldurl ne $url) { system("git remote rm $remote 2>/dev/null"); - system("git", "remote", "add", "-f", $remote, $url) + system("git", "remote", "add", "-f", $remote, $url); + system("git", "config", "remote.$remote.tagopt", + "--no-tags"); } } }