We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea1a03a commit 5b3669eCopy full SHA for 5b3669e
git/cmd.py
@@ -781,7 +781,10 @@ def execute(self,
781
log.info(' '.join(redacted_command))
782
783
# Allow the user to have the command executed in their working dir.
784
- cwd = self._working_dir or os.getcwd()
+ try:
785
+ cwd = self._working_dir or os.getcwd() # type: Union[None, str]
786
+ except FileNotFoundError:
787
+ cwd = None
788
789
# Start the process
790
inline_env = env
0 commit comments