Removed Dir.chdir from `repo_size`