aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/download_strategy.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 1e84bb272..d3b72e09a 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -66,6 +66,10 @@ class VCSDownloadStrategy < AbstractDownloadStrategy
def clear_cache
cached_location.rmtree if cached_location.exist?
end
+
+ def head?
+ resource.version.head?
+ end
end
class CurlDownloadStrategy < AbstractDownloadStrategy
@@ -350,7 +354,7 @@ end
class SubversionDownloadStrategy < VCSDownloadStrategy
def cache_tag
- resource.version.head? ? "svn-HEAD" : "svn"
+ head? ? "svn-HEAD" : "svn"
end
def repo_valid?