aboutsummaryrefslogtreecommitdiff
path: root/gitremotes
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2010-05-09 16:44:47 +0100
committerSimon McVittie <smcv@debian.org>2010-05-09 16:44:47 +0100
commit2d60e55303fbabe70b42ee31703a8d4aca2d8460 (patch)
tree5f82a5d13a479e17e07ecd3592ed5ad584b9be34 /gitremotes
parent7cb31560a584cf8f62723e0a142fddafa637f09e (diff)
downloadikiwiki-2d60e55303fbabe70b42ee31703a8d4aca2d8460.tar
ikiwiki-2d60e55303fbabe70b42ee31703a8d4aca2d8460.tar.gz
gitremotes: don't fetch the new remote until we've turned off tags
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);
}
}
}