aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2016-08-19 21:16:52 +0800
committerGitHub2016-08-19 21:16:52 +0800
commit893582b89fa063e49b9f01e8e036a66a33b359b6 (patch)
treec71686bd502941432dc797ba59f6c84e60d91f54 /Library
parentbd1ded93ec46b2ae9c37dbf17dd6d74d3f727440 (diff)
parentb7a17ba3454442ef724849710b476e7d7ba5785c (diff)
downloadbrew-893582b89fa063e49b9f01e8e036a66a33b359b6.tar.bz2
Merge pull request #749 from vladshablinsky/fix_commit
download_strategy: check if commit nil
Diffstat (limited to 'Library')
-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