From fbd0d7ec7b3702153ff30b6327aebda0f0a74e67 Mon Sep 17 00:00:00 2001 From: Daniel Bingham Date: Tue, 27 Sep 2011 16:07:47 -0700 Subject: [PATCH] Fix :sha spec so that it actually checks out the SHA :sha was used to prevent the "--depth" option to git clone, but was never actually used to checkout the SHA. Closes Homebrew/homebrew#7859. Signed-off-by: Jack Nagel --- 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 f63ed98a32..8b6f95525c 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -344,7 +344,7 @@ class GitDownloadStrategy < AbstractDownloadStrategy case @spec when :branch nostdout { quiet_safe_system 'git', 'checkout', "origin/#{@ref}" } - when :tag + when :tag, :sha nostdout { quiet_safe_system 'git', 'checkout', @ref } end else