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