Avoid calling unrelated tramp when revert buffers

file-readable-p calls tramp, so check if it is in repository first.