diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index cbfb00254..6927079ed 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -356,8 +356,8 @@ class GitDownloadStrategy < AbstractDownloadStrategy @clone.join(".git") end - def has_tag?(tag) - quiet_system @@git, '--git-dir', git_dir, 'rev-parse', '-q', '--verify', tag + def has_ref? + quiet_system @@git, '--git-dir', git_dir, 'rev-parse', '-q', '--verify', @ref end def support_depth? @@ -401,7 +401,7 @@ class GitDownloadStrategy < AbstractDownloadStrategy end def update_repo - unless @spec == :tag && has_tag?(@ref) + unless @spec == :tag && has_ref? quiet_safe_system @@git, 'fetch', 'origin' end end |
