◐ Shell
reader mode source ↗
Skip to content
Merged
Changes from all commits
File filter
Conversations
Jump to
Diff view
Apply and reload
Show whitespace
Diff view
Apply and reload
6 changes: 1 addition & 5 deletions gitdb/db/loose.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
ObjectDBW
)


from gitdb.exc import (
BadObject,
AmbiguousObjectName
Expand All @@ -33,10 +32,8 @@
bin_to_hex,
exists,
chmod,
isdir,
isfile,
remove,
mkdir,
rename,
dirname,
basename,
Expand Down Expand Up @@ -222,8 +219,7 @@ def store(self, istream):
if tmp_path:
obj_path = self.db_path(self.object_path(hexsha))
obj_dir = dirname(obj_path)
if not isdir(obj_dir):
mkdir(obj_dir)
# END handle destination directory
# rename onto existing doesn't work on NTFS
if isfile(obj_path):
Expand Down
Toggle all file notes Toggle all file annotations