Add missing `revision` argument
I've noticed that when you're not working on the main branch, there are sometimes errors in the files returned. After some investigation, I realized that the revision was not properly passed  everywhere. This PR proposes a fix.