change the iterator of shaList

This commit is contained in:
nigel007 2019-05-26 16:26:45 +08:00
parent f2d403cc43
commit e4e6c9cc61
1 changed files with 1 additions and 1 deletions
app/api/mobile/apis

View File

@ -91,7 +91,7 @@ module Mobile
Rails.logger.info params[:shaList].length
g = Gitlab.client # 用于通过gitlab api进行查询
result = []
for i in 0..params[:shaList].length
for i in 0..params[:shaList].length-1
sha = params[:shaList][i]
Rails.logger.info sha
commit = g.commit(project.gpid, sha)