If I install a package from git using https://pip.pypa.io/en/stable/reference/pip_install/#git does the specific commit that was checked out logged somewhere?
One possible alternative is to use pip install --editable. In such case pip will clone the repo to $PREFIX/src/$egg_name (where $PREFIX is either your virtualenv directory or current working directory), and then just create and egg-link pointing to that path. This way, you will easily be able to check current revision for the cloned repo.
On the other hand, package installed this way might have different file structure than the one installed in a regularl way. So in some cases this won't work.