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

Commita1c472b

Browse files
authored
Merge pull request#1619 from HageMaster3108/bugfix/use-python-builtin-open-method-to-create-lockfile-to-workaround-docker-virtiofs-permission-issue
#1566 Creating a lock now uses python built-in "open()" method to work arou…
2 parents8b75434 +70924c4 commita1c472b

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

‎git/util.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -935,11 +935,7 @@ def _obtain_lock_or_raise(self) -> None:
935935
)
936936

937937
try:
938-
flags=os.O_WRONLY|os.O_CREAT|os.O_EXCL
939-
ifis_win:
940-
flags|=os.O_SHORT_LIVED
941-
fd=os.open(lock_file,flags,0)
942-
os.close(fd)
938+
open(lock_file,mode='w',closefd=True)
943939
exceptOSErrorase:
944940
raiseIOError(str(e))frome
945941

‎test/test_repo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
importpickle
1414
importsys
1515
importtempfile
16-
fromunittestimportmock,skipIf,SkipTest
16+
fromunittestimportmock,skipIf,SkipTest,skip
1717

1818
importpytest
1919

@@ -251,6 +251,7 @@ def test_clone_from_with_path_contains_unicode(self):
251251
self.fail("Raised UnicodeEncodeError")
252252

253253
@with_rw_directory
254+
@skip("the referenced repository was removed, and one needs to setup a new password controlled repo under the orgs control")
254255
deftest_leaking_password_in_clone_logs(self,rw_dir):
255256
password="fakepassword1234"
256257
try:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp