From 2d89e48bbc3e98b1a4cdfe7a094437ce0aab3f43 Mon Sep 17 00:00:00 2001 From: Joe George Date: Fri, 31 May 2019 08:58:17 -0400 Subject: [PATCH] Fix #6188 Add trailing -- to git reset when performing a branch reset to remove ambiguity between revision and file --- Library/Homebrew/download_strategy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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