Split commit fetching on refs and oids
The Project#commit allows both fetching by oid and ref:
project.commit("zj-commit-cache") #=> Commit
project.commit("deadbeef012345678") #=> Commit
it would be easier for caching to split this. But also, getting a commit by oid is slightly faster.
Noticed in gitlab-ce!14863
Edited by Zeger-Jan van de Weg