change true to commit

This commit is contained in:
nigel007 2019-05-26 20:36:10 +08:00
parent e4e6c9cc61
commit 8bc19d36db
1 changed files with 2 additions and 3 deletions

View File

@ -91,12 +91,11 @@ module Mobile
Rails.logger.info params[:shaList].length
g = Gitlab.client # 用于通过gitlab api进行查询
result = []
for i in 0..params[:shaList].length-1
sha = params[:shaList][i]
params[:shaList].each do |sha|
Rails.logger.info sha
commit = g.commit(project.gpid, sha)
if commit
result << true
result << commit
else
result << false
end