Browse Source

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

extendedlink
Simon McVittie 10 years ago
parent
commit
2d60e55303
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      gitremotes

+ 2
- 1
gitremotes 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);
}
}
}


Loading…
Cancel
Save