Skip to content
Browse files

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

  • Loading branch information...
1 parent 7cb3156 commit 2d60e55303fbabe70b42ee31703a8d4aca2d8460 @smcv smcv committed May 9, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 gitremotes
View
3 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);
}
}
}

0 comments on commit 2d60e55

Please sign in to comment.
Something went wrong with that request. Please try again.