API command: List Repository Tree "GET /projects/:id/repository/tree" returns wrong "id" field

Summary

When using GET /projects/:id/repository/tree the"id"-field does not correspond to the latest commit id of the files. No detail description of the output parameter in the doc https://docs.gitlab.com/ee/api/repositories.html#list-repository-tree , thus assuming that id field means commit ID.

Steps to reproduce

use the following curl command to get the repository tree of the gitlab-ce project of gitlab-org

curl -H 'Cache-Control: no-cache' -H 'Host: gitlab.com' -H 'User-Agent: okhttp/3.3.0' --compressed 'https://gitlab.com/api/v3/projects/13083/repository/tree' |json_pp

Expected behavior

When posting this issue the README.md fileof the gitlab-ce project of gitlab-org has the commit ID :loading:

645412b57f558d58418aad278c9a3bf421439e1c (this value is shown in the web interface)

Actual behavior

Excerpt of the json output:

 {
      "path" : "README.md",
      "id" : "4e28f3aacfd69a59c8de9d26944f6f487a95c574",
      "name" : "README.md",
      "type" : "blob",
      "mode" : "100644"
   },