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

Commit5b3669e

Browse files
committed
Don't fail on import if the working dir isn't valid (#1319)
1 parentea1a03a commit5b3669e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎git/cmd.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,10 @@ def execute(self,
781781
log.info(' '.join(redacted_command))
782782

783783
# Allow the user to have the command executed in their working dir.
784-
cwd=self._working_diroros.getcwd()
784+
try:
785+
cwd=self._working_diroros.getcwd()# type: Union[None, str]
786+
exceptFileNotFoundError:
787+
cwd=None
785788

786789
# Start the process
787790
inline_env=env

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp