Chromium Code Reviews| Index: git_cache.py |
| diff --git a/git_cache.py b/git_cache.py |
| index ca21a3c944d5432efc0a28c4813463c28362a3ba..1b135d50b425ae9bdab8201a140ece0311390b2a 100755 |
| --- a/git_cache.py |
| +++ b/git_cache.py |
| @@ -399,6 +399,8 @@ class Mirror(object): |
| @staticmethod |
| def DeleteTmpPackFiles(path): |
| pack_dir = os.path.join(path, 'objects', 'pack') |
| + if not os.path.isdir(pack_dir): |
| + return |
| pack_files = [f for f in os.listdir(pack_dir) if |
| f.startswith('.tmp-') or f.startswith('tmp_pack_')] |
| for f in pack_files: |