diff options
| author | Daniel Bingham | 2011-09-27 16:07:47 -0700 |
|---|---|---|
| committer | Jack Nagel | 2011-10-03 18:45:25 -0500 |
| commit | fbd0d7ec7b3702153ff30b6327aebda0f0a74e67 (patch) | |
| tree | 9e6ba1f61ff9b4a13c2e23e22ec98c01a257068c /Library/Homebrew | |
| parent | 2f85acfeb2a88c34ae44d2368e49f70fd50aa8e4 (diff) | |
| download | brew-fbd0d7ec7b3702153ff30b6327aebda0f0a74e67.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 Homebrew/homebrew#7859.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew')
| -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 |
