From 2d60e55303fbabe70b42ee31703a8d4aca2d8460 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Sun, 9 May 2010 16:44:47 +0100 Subject: [PATCH] gitremotes: don't fetch the new remote until we've turned off tags --- gitremotes | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gitremotes b/gitremotes index 6c03011a8..5cafad1b8 100755 --- a/gitremotes +++ b/gitremotes @@ -16,9 +16,10 @@ 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", $remote, $url); system("git", "config", "remote.$remote.tagopt", "--no-tags"); + system("git", "fetch", $remote); } } } -- 2.39.5