Skip to content

Commit

Permalink
Fix root bypass permission error
Browse files Browse the repository at this point in the history
  • Loading branch information
Dramelac committed Nov 15, 2023
1 parent 0e67813 commit f253741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exegol/utils/GitUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self,
elif sys.platform == "win32":
# Skip next platform specific code (temp fix for mypy static code analysis)
pass
elif not EnvInfo.is_windows_shell and test_git_dir.lstat().st_uid != os.getuid():
elif not EnvInfo.is_windows_shell and os.getuid() != 0 and test_git_dir.lstat().st_uid != os.getuid():
raise PermissionError(test_git_dir.owner())
except ReferenceError:
if self.__git_name == "wrapper":
Expand Down

0 comments on commit f253741

Please sign in to comment.