8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d22ac20 + 60f7f94 commit 295a55bCopy full SHA for 295a55b
gitdb/db/loose.py
@@ -8,7 +8,6 @@
8
ObjectDBW
9
)
10
11
-
12
from gitdb.exc import (
13
BadObject,
14
AmbiguousObjectName
@@ -33,10 +32,8 @@
33
32
bin_to_hex,
34
exists,
35
chmod,
36
- isdir,
37
isfile,
38
remove,
39
- mkdir,
40
rename,
41
dirname,
42
basename,
@@ -222,8 +219,7 @@ def store(self, istream):
222
219
if tmp_path:
223
220
obj_path = self.db_path(self.object_path(hexsha))
224
221
obj_dir = dirname(obj_path)
225
- if not isdir(obj_dir):
226
- mkdir(obj_dir)
+ os.makedirs(obj_dir, exist_ok=True)
227
# END handle destination directory
228
# rename onto existing doesn't work on NTFS
229
if isfile(obj_path):
0 commit comments