Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdbf3d27

Browse files
AlanCodingByron
authored andcommitted
Do not error in race condition of directory existing
1 parent0420b01 commitdbf3d27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎git/util.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def assure_directory_exists(path, is_file=False):
174174
path=osp.dirname(path)
175175
# END handle file
176176
ifnotosp.isdir(path):
177-
os.makedirs(path)
177+
os.makedirs(path,exist_ok=True)
178178
returnTrue
179179
returnFalse
180180

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp