From 6f8d81e780a392e86e01f4700a788a7f9c84fe47 Mon Sep 17 00:00:00 2001 From: Chongyu Zhu Date: Wed, 12 Dec 2018 19:42:12 +0800 Subject: [PATCH] GitDownloadStrategy: disable automatic tag following --- Library/Homebrew/download_strategy.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 86d458f5ee..6fba4ab832 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -683,6 +683,9 @@ class GitDownloadStrategy < VCSDownloadStrategy system_command! "git", args: ["config", "remote.origin.fetch", refspec], chdir: cached_location + system_command! "git", + args: ["config", "remote.origin.tagOpt", "--no-tags"], + chdir: cached_location end def update_repo