X-Git-Url: http://git.tremily.us/?p=ikiwiki.git;a=blobdiff_plain;f=gitremotes;h=5cafad1b8dcb550c694567b7815978a7861fc6fe;hp=6c03011a8cb5ac73a90edb1e74dab102c55eb9d5;hb=4c45ea0370d26d0a235c82ee3daabb75321acc8f;hpb=ec2790b0ec152afc2dc8a29ce89f9b140a1e7647 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); } } }