gitremotes: don't fetch the new remote until we've turned off tags

master
Simon McVittie 2010-05-09 16:44:47 +01:00
parent 7cb31560a5
commit 2d60e55303
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}
}
}