Reverted change to test_cannot_access_commit_from_invalid_ref.