diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index aee7d9b1fa..5afb8c13ed 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -746,7 +746,7 @@ class GitDownloadStrategy < VCSDownloadStrategy end system_command! "git", - args: ["reset", "--hard", *ref], + args: ["reset", "--hard", *ref, "--"], chdir: cached_location end