diff options
| author | Daniel Bingham | 2011-09-27 16:07:47 -0700 | 
|---|---|---|
| committer | Jack Nagel | 2011-10-03 18:45:25 -0500 | 
| commit | 84b8dfeb185abb7eb778d6d805a0b7e493c15db0 (patch) | |
| tree | f3d5afca43562aba66fddf4701cc3de8a9f6805a /Library/Homebrew/download_strategy.rb | |
| parent | 52eaf97a56e2e61c3449e1ebf07d7c8aeebb1880 (diff) | |
| download | homebrew-84b8dfeb185abb7eb778d6d805a0b7e493c15db0.tar.bz2 | |
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 <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/download_strategy.rb')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
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  | 
