It would be helpful for creating cache keys if we could get the exact commit hash of a ref that might float like 'master'.