From b7a17ba3454442ef724849710b476e7d7ba5785c Mon Sep 17 00:00:00 2001 From: Vlad Shablinsky Date: Fri, 19 Aug 2016 12:32:20 +0200 Subject: download_strategy: check if commit nil --- Library/Homebrew/download_strategy.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'Library') 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 -- cgit v1.2.3