download_strategy: check if commit nil

This commit is contained in:
Vlad Shablinsky 2016-08-19 12:32:20 +02:00
parent 82ea19bc15
commit b7a17ba345

View File

@ -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