Merge pull request #749 from vladshablinsky/fix_commit

download_strategy: check if commit nil
This commit is contained in:
Xu Cheng 2016-08-19 21:16:52 +08:00 committed by GitHub
commit 893582b89f

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