aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorVlad Shablinsky2016-08-19 12:32:20 +0200
committerVlad Shablinsky2016-08-19 12:32:20 +0200
commitb7a17ba3454442ef724849710b476e7d7ba5785c (patch)
tree1742351d18026d9021444459349e20a111f13e81 /Library/Homebrew
parent82ea19bc15a2f93c9b2f71da16eea2f5fa207936 (diff)
downloadbrew-b7a17ba3454442ef724849710b476e7d7ba5785c.tar.bz2
download_strategy: check if commit nil
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/download_strategy.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 044030efa..cd09fc1e2 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -821,6 +821,7 @@ class GitHubGitDownloadStrategy < GitDownloadStrategy
if !@last_commit
super
else
+ return true unless commit
return true unless @last_commit.start_with?(commit)
multiple_short_commits_exist?(commit)
end