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

Commit5da76e8

Browse files
committed
Assure CWD is readable after acquiring it
Fixes#1334
1 parentef1ef4d commit5da76e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎git/cmd.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,8 @@ def execute(self,
783783
# Allow the user to have the command executed in their working dir.
784784
try:
785785
cwd=self._working_diroros.getcwd()# type: Union[None, str]
786+
ifnotos.access(str(cwd),os.X_OK):
787+
cwd=None
786788
exceptFileNotFoundError:
787789
cwd=None
788790

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp