From 84b8dfeb185abb7eb778d6d805a0b7e493c15db0 Mon Sep 17 00:00:00 2001 From: Daniel Bingham Date: Tue, 27 Sep 2011 16:07:47 -0700 Subject: 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 #7859. Signed-off-by: Jack Nagel --- Library/Homebrew/download_strategy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index f63ed98a3..8b6f95525 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 -- cgit v1.2.3