diff options
| author | Ben Cochran | 2009-12-16 15:32:58 -0600 |
|---|---|---|
| committer | Max Howell | 2009-12-17 15:03:02 +0000 |
| commit | 2845e18ce30ab7d8c781dd369dbd45d690d36d60 (patch) | |
| tree | 671ec2c369b5f67d92f6a82a978ce1bbef8bdae9 /Library | |
| parent | 37bc4c263de9efc5dc2c6a378c1b69597303c776 (diff) | |
| download | homebrew-2845e18ce30ab7d8c781dd369dbd45d690d36d60.tar.bz2 | |
Removed cloning a specific revision from the mercurial download strategy.
When cloning a mercurial repository from a tagged revision, that tag definition
isn't actually included. This causes `hg archive -r tag_name` to fail.
Instead, just clone the repository's head and the `hg archive -r revision` will
handle getting the correct revision to for the build
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index e2a50b1d3..1d796f673 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -243,9 +243,6 @@ class MercurialDownloadStrategy <AbstractDownloadStrategy unless @clone.exist? checkout_args = [] - if (@spec == :revision) and @ref - checkout_args << '-r' << @ref - end checkout_args << url << @clone safe_system 'hg', 'clone', *checkout_args else |
