Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Do not error in race condition of directory existing
  • Loading branch information
AlanCoding committed Mar 11, 2020
commit ee6d4dbe49ee4b1388ab4e6952870660e52cac7f
2 changes: 1 addition & 1 deletion git/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def assure_directory_exists(path, is_file=False):
path = osp.dirname(path)
# END handle file
if not osp.isdir(path):
os.makedirs(path)
os.makedirs(path, exist_ok=True)
return True
return False

Expand Down