summaryrefslogtreecommitdiff
path: root/gitremotes
diff options
context:
space:
mode:
authorJoey Hess <joey@finch.kitenet.net>2010-05-11 21:52:39 +0000
committerJoey Hess <joey@finch.kitenet.net>2010-05-11 21:52:39 +0000
commit688c58ac9080362e9f033bc6cc50d4b2d7d46d6f (patch)
treede6c9b384cf71599df3f35874aea6ec19188d377 /gitremotes
parent4ceae1761b6f190a6115c106713d28f0a94e9191 (diff)
parent378cae14bbd540aa1cd6b165bee408c0add169c3 (diff)
Merge branch 'master' of file:///srv/git/ikiwiki.info
Diffstat (limited to 'gitremotes')
-rwxr-xr-xgitremotes3
1 files changed, 2 insertions, 1 deletions
diff --git a/gitremotes b/gitremotes
index 6c03011a8..5cafad1b8 100755
--- a/gitremotes
+++ b/gitremotes
@@ -16,9 +16,10 @@ while (<IN>) {
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", $remote, $url);
system("git", "config", "remote.$remote.tagopt",
"--no-tags");
+ system("git", "fetch", $remote);
}
}
}