read the diff of commit_diff

This commit is contained in:
nigel007 2019-05-26 10:50:11 +08:00
parent 18ccb3347d
commit 9ac5b33689
1 changed files with 2 additions and 2 deletions

View File

@ -90,8 +90,8 @@ module Mobile
project = Project.find_by_user_id_name(owner.id, params[:reponame])
if project
g = Gitlab.client # 用于通过gitlab api进行查询
diff = g.commit_diff(project.id, params[:oldHash])
Rails.logger.info diff
diff_result = g.commit_diff(project.id, params[:oldHash])
Rails.logger.info diff_result.diff
end
end
end