Skip to content

Commit

Permalink
Fix "Permission denied" error renaming/removing files when git is not…
Browse files Browse the repository at this point in the history
… installed
  • Loading branch information
andreax79 committed Jan 30, 2023
1 parent f5da0e0 commit bd4eef2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion airflow_code_editor/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.2.0
7.2.1
2 changes: 1 addition & 1 deletion airflow_code_editor/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def git_call(argv: List[str], capture_output: bool = False) -> Tuple[int, bytes,
env=env,
)
return completed.returncode, completed.stdout, completed.stderr
except FileNotFoundError:
except (FileNotFoundError, PermissionError):
return 127, b'', b'git command not found'


Expand Down
10 changes: 9 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -446,4 +446,12 @@

### Changed

- JavaScript dependencies update
- JavaScript dependencies update

## 7.2.1

2023-01-30

### Fix

- Fix "Permission denied" error renaming/removing files when git is not installed

0 comments on commit bd4eef2

Please sign in to comment.